Open
Bug 1141224
Opened 9 years ago
Updated 2 years ago
SVG tspan with display:none should not affect text position
Categories
(Core :: SVG, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: amelia.bellamy.royds, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 Build ID: 20150305021524 Steps to reproduce: An SVG <text> element includes <tspan> elements with positioning attributes (x/y/dx/dy). These tspans should only display under certain CSS media queries (to affect the layout in a responsive web site). Test page: http://codepen.io/AmeliaBR/pen/wBxdpM?editors=110 Actual results: The change in text position created by the attributes on the <tspan> is applied regardless of whether the tspan itself is displayed. (You can replace the zero-width space characters in the test case with visible characters to confirm that the tspan *contents* are correctly displayed/hidden according to the media queries. But the position attributes apply either way.) Expected results: The elements with display:none should have no effect on rendering. This works in Chrome and IE.
Comment 1•9 years ago
|
||
By design I think, do take this up with Cameron.
Updated•4 years ago
|
See Also: → https://webcompat.com/issues/52939
Updated•4 years ago
|
See Also: https://webcompat.com/issues/52939 →
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•