Re: [csswg-drafts] [css-shadow-parts] Make `::slotted()` a combinator (#7922)

All of those targeting options sound AMAZING! 😍

When you say "make it a combinator", what does that _really_ mean? Is that a syntax change? Is that an interpreter change? Something else?

If this is an interpreter change, is there room to as part of this investigation to look into ways that we might alter the specificity of a `::slotted()` selector? By default, it is very low, which leads to usage of the `!imporant` flag when attempting to "require" certain visual delivery of slotted content. Being able to manage this more explicitly via the selector in some way would prevent needing to use `!imporant` across a myriad of rules.

If this allows for targeting descendants, is there any benefit to investigating the inclusion of `:host` in this conversation as well? It also refers to the light DOM, and while we've recently seen Safari add support for the `:has()` selector to it, there are many other concepts that could be productive added to it (e.g. `:host-context` equivalent selection) that would be looked on quite favorably by the community.

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


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

Received on Thursday, 20 October 2022 14:17:53 UTC