:has-slotted
Limited availability
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.
Learning resources on MDN
Browser support
- Chrome 134 Released on 2025-03-04
- Chrome Android 134 Released on 2025-03-04
- Edge 134 Released on 2025-03-06
- Firefox 136 Released on 2025-03-04
- Firefox for Android 136 Released on 2025-03-04
- Safari ❌ Vendor position : support
- Safari on iOS ❌ Vendor position : support
Baseline availability blocked since March 2025 by Safari (1 months)
Specifications
View web-platform-tests results for this feature - View the feature source file (dist) - Edit the feature - Report an issue about this feature