Open
Bug 628848
Opened 13 years ago
Updated 2 years ago
SVG: SVGLength.value returns wrong results for percentage lengths in display:none blocks
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
NEW
People
(Reporter: birtles, Unassigned)
Details
Attachments
(2 files)
When we have an SVG fragment that is not rendered because it or a parent is display:none, attempts to fetch the value of any percentage-based lengths in user units (by calling SVGLength.value) do not return the expected result. In the attached test case we have a circle with cy="50%" but querying the value of this length in user units gives us "5.000000245224396e-21" instead of 50. Not that if we change the block from "display:none" to "visibility:hidden" the result is 50 as expected. This situation occurs frequently in our mochitest suite where the test content appears in a display:none block.
Reporter | ||
Comment 1•13 years ago
|
||
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•