: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 ❌
- Chrome Android ❌
- Edge ❌
- Firefox ❌ Vendor position : positive
- Firefox for Android ❌ Vendor position : positive
- Safari ❌ Vendor position : support
- Safari on iOS ❌ Vendor position : support
Specifications
View web-platform-tests results for this feature - View the feature source file - Edit the feature - Report an issue about this feature