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

> An interesting edge case to consider will be slots with default content as well. Does default content count as `has-slotted`? i.e.,
> 
> ```
> <slot>
>     <p>Lorem ipsum dolor...</p>
> </slot>
> ```

I'd say no, because that `<p>` isn't technically slotted. One can combine `:has-slotted` with `:empty`, if necessary.

But perhaps there may be more use cases.

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


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

Received on Monday, 6 February 2023 15:29:26 UTC