Bug 232942

Summary: Add support for `content: none` on elements
Product: WebKit Reporter: Antoine Quint <graouts>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: karlcow, sam, sebastianzartner, webkit-bug-importer
Priority: P2 Keywords: InRadar, WPTImpact
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://wpt.live/results/css/css-content/content-none-select-1.html
See Also: https://bugs.webkit.org/show_bug.cgi?id=232932

Antoine Quint
Reported 2021-11-10 06:45:10 PST
The CSS Generated Content Module Level 3 spec introduces the notion of `content: none` on elements, see https://drafts.csswg.org/css-content/#valdef-content-none: > On elements, this inhibits the children of the element from being rendered as children of this element, as if the element was empty. We should implement this behavior which Firefox 91 and up support behind a flag.
Attachments
Radar WebKit Bug Importer
Comment 1 2021-11-17 06:46:23 PST
Karl Dubost
Comment 3 2025-06-11 20:07:14 PDT
data:text/html,<select class="" style="content:none;"><option>FAIL</option><option>FAIL</option></select> FAIL should disappear. Safari, Chrome: FAIL visible Firefox: FAIL NOT visible
Note You need to log in before you can comment on or make changes to this bug.