Re: [csswg-drafts] [selectors] Pseudo class to indicated when a slot has content (#6867)

We have a number of SSR users who really need this selection.

There a few reasons this is critical in some SSR implementations:
 1. They may not actually use a DOM on the server - they're just emitting strings to the HTTP response. So there may be no way to determine if an element slots into a parent's slot.
 2. The current workaround of listening for `slotchange` and setting a class uses imperative DOM code that doesn't work on the server, and doesn't work on initial hydration without JS.
 
 It seems like the idea of a new selector is fairly well received... can this idea be added to an upcoming csswg meeting?

-- 
GitHub Notification of comment by justinfagnani
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6867#issuecomment-1599444407 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 20 June 2023 20:21:13 UTC