WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
103493
display: none ignored on outermost SVG element
https://bugs.webkit.org/show_bug.cgi?id=103493
Summary
display: none ignored on outermost SVG element
Elliott Sprehn
Reported
2012-11-28 01:11:06 PST
If you do <svg style="display: none"> on the outermost SVG element we ignore it which is wrong. I tried to fix this, but it's hard since we depend on the SVGDocument::rootElement() having a renderer. Instead SVG should use a RenderView like HTML for the thing that must always exist.
Attachments
Reduction
(182 bytes, image/svg+xml)
2012-11-28 01:13 PST
,
Elliott Sprehn
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Elliott Sprehn
Comment 1
2012-11-28 01:13:59 PST
Created
attachment 176422
[details]
Reduction
Stephen Chenney
Comment 2
2012-11-28 08:21:38 PST
This is a side effect of the fact that SVG needs renderers for content hat the SVG spec defines as display:none. Examples include filters, masks, patterns, anything in defs elemens, etc. Mozilla have apparently also had issue with this:
https://bugzilla.mozilla.org/show_bug.cgi?id=376027
We should still fix it though, as it should be possible to put display:none on the root SVG and have nothing display.
Brent Fulgham
Comment 3
2022-07-15 15:45:14 PDT
Safari and Chrome fail this test. Firefox handles it properly.
Radar WebKit Bug Importer
Comment 4
2022-07-15 15:47:05 PDT
<
rdar://problem/97098400
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug