Web platform features explorer

: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

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

Developer 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.