Closed
Bug 1306960
Opened 8 years ago
Closed 8 years ago
SVG filter doesn't work if the containing svg element is "display: none"
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
DUPLICATE
of bug 376027
Tracking | Status | |
---|---|---|
firefox52 | --- | affected |
People
(Reporter: xidorn, Unassigned)
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
Steps to reproduce: 1. open the attached testcase Expected result: It shows red characters. Actual result: It shows nothing. In this testcase, the containing <svg> element of the target filter has "display: none", which makes it hide anything the filter applies to. I think it is not an intuitive result. When people use in-page SVG filter (probably also mask and path), they in general don't want the <svg> element to affect the layout, so it is pretty natural to set "display: none" on it. Examples on MDN use "position: absolute; top: -9999px;" to achive the same result, but I think that should be considered only a hack. I don't see why filter shouldn't function properly when its containing <svg> is not rendered.
Reporter | ||
Comment 1•8 years ago
|
||
FWIW, the testcase does work as expected in Blink and WebKit.
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•