WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
179402
::slotted() styles should be applied only after flattening
https://bugs.webkit.org/show_bug.cgi?id=179402
Summary
::slotted() styles should be applied only after flattening
Keanu Lee
Reported
2017-11-07 17:11:09 PST
Per the spec
https://drafts.csswg.org/css-scoping/#slotted-pseudo
, the ::slotted() selector should only be applied to elements after flattening. Example:
https://jsbin.com/ruwesaj/edit?html,output
The following style: ::slotted(.hide) { display: none; } should not apply to the intermediate: <slot class="hide"></slot>
Attachments
Add attachment
proposed patch, testcase, etc.
Simon Fraser (smfr)
Comment 1
2020-09-23 09:19:55 PDT
Is this related to
bug 169948
?
Ryosuke Niwa
Comment 2
2020-09-24 23:15:43 PDT
(In reply to Simon Fraser (smfr) from
comment #1
)
> Is this related to
bug 169948
?
Yup. That bug is now not to be fixed given the latest discussion at CSS WG:
https://github.com/w3c/csswg-drafts/issues/5482
Ryosuke Niwa
Comment 3
2022-07-02 22:55:37 PDT
This is working now.
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