BASELINE NowYouCanUse.com
Limited Availability Selectors
id: has-slotted

:has-slotted

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.
Baseline Status: This feature is currently Limited and is missing in at least one major browser engine.
Desktop Browser Engine Support
Google Chrome
Unsupported
Mozilla Firefox
136
Supported
Apple Safari
Unsupported
Microsoft Edge
Unsupported
Mobile Browser Engine Support
Chrome Android
Firefox Android
136
Safari iOS
Specifications and References