: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.
Status
Limited availability
MDN documentation
Specifications
Browser support
- Chrome ❌
- Chrome Android ❌
- Edge ❌
- 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
Developer signals
- State of HTML 2025: web_components/web_components_features question
- State of HTML 2025: features/all_features question
- State of CSS 2025: usage/css_missing_features question
Web Platform Tests (WPT)
View the latest WPT test results for this featureDeveloper signals
Votes: 6
If you want this feature to be available in all browsers, vote for it by adding a thumbs up reaction (👍) to this GitHub issue, and leave a comment with more information.
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist