Closed
Bug 740939
Opened 13 years ago
Closed 13 years ago
SVG element does not have default width if width is unspecified
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 736431
People
(Reporter: mfrederick, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.142 Safari/535.19
Steps to reproduce:
<svg version="1.1" style="height: 28px; border: 1px solid red">
<text x="0" y="20" style="font-family:Arial;font-size:15px;fill:#000000;">Hello, this is some long, long, long text that may not render correctly.</text>
</svg>
Actual results:
The bounding box width for the SVG element seems to be arbitrarily set to 300px. According to the spec, "If the attribute is not specified, the effect is as if a value of '100%' were specified."
Setting the width to 100% seems to be the workaround.
Expected results:
Unspecified width should work as intended. This works in FF10 and below.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•