WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
232942
Add support for `content: none` on elements
https://bugs.webkit.org/show_bug.cgi?id=232942
Summary
Add support for `content: none` on elements
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
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2021-11-17 06:46:23 PST
<
rdar://problem/85502418
>
Karl Dubost
Comment 2
2025-06-11 19:56:40 PDT
This test is failing because of this.
https://wpt.fyi/results/css/css-content/content-none-select-1.html
https://wpt.live/results/css/css-content/content-none-select-1.html
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.
Top of Page
Format For Printing
XML
Clone This Bug