Bug 93770 - When SVG is embedded as an image, the default font size is very small
Summary: When SVG is embedded as an image, the default font size is very small
Status: RESOLVED DUPLICATE of bug 68090
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 420+
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-11 17:20 PDT by Philip Rogers
Modified: 2012-08-13 09:47 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Rogers 2012-08-11 17:20:22 PDT
Consider the following SVG:
<svg id="svg" width="300" height="300" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <rect x="0" y="0" width="100" height="100" fill="lightgray"/>
    <text x="10" y="20">PASS1</text>
    <text x="10" y="40" font-size="14">PASS2</text>
</svg>

Viewed alone, PASS1 and PASS2 are visible on a gray square. If the SVG is embedded though:
<html>
    <img src="svg.svg"/>
</html>

PASS2 will be rendered as expected but PASS1 will render very small--one pixel high and just a few pixels across.
Comment 1 Alexey Proskuryakov 2012-08-13 09:47:07 PDT

*** This bug has been marked as a duplicate of bug 68090 ***