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

@tabatkins where are you seeing the `:has-slotted` selector being available? Feels like the optimal usability of it would benefit from it being available all the way up to `:host:has-slotted([slot=name])`.

Would be we able to do something here along the lines of [`.assignedElements({flatten: true})`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedElements#flatten) to ensure this selector is pointing to "content" and not just "possible content" (e.g. `<slot>` elements)?

Is there any benefit in being forward looking to the discussion in https://github.com/w3c/csswg-drafts/issues/7922 and make it a combinator? Maybe that doesn't make sense in this case...

-- 
GitHub Notification of comment by Westbrook
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6867#issuecomment-1419088757 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 13:32:11 UTC