CSS :has-slotted support
The :has-slotted CSS pseudo-class matches <slot> elements where the fallback content is not shown. The pseudo-class matches any slotted content, including white space, text nodes, or elements.
For Interop 2027, it would be great to have the :has-slotted selector available across all engines. It has already landed in Firefox. It is being worked on in WebKit (spec clarifications are being sought) and at one point, it was also being worked on in Chromium. Having this cross-engine would remove the need for hacky JS workarounds.
Spec:
https://drafts.csswg.org/css-shadow-1/#the-has-slotted-pseudo
Discussion on GitHub (0)
No comments on GitHub yet
Be the first developer to share technical feedback or use cases on this Interop proposal.
Join discussion on GitHub