- From: Lea Verou via GitHub <sysbot+gh@w3.org>
- Date: Thu, 20 Oct 2022 14:34:21 +0000
- To: public-css-archive@w3.org
> 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? Combinators are things like `>`, `+`, `~` etc. They are used to target elements based on their relationships. > > 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. The problem is not that its specificity is low, but that it operates on an entirely different level of the cascade. @mirisuzanne, @fantasai and I were discussing how to address this just the other day, but it's orthogonal to this. If you have any pointers to discussions about this problem (besides the [issue](https://github.com/w3c/webcomponents-cg/issues/5) I linked to above) they would be useful. > 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. This is also a separate issue, but any pointers you may have are useful, so we can open a new issue to discuss it! -- GitHub Notification of comment by LeaVerou Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7922#issuecomment-1285656884 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:34:23 UTC