[csswg-drafts] [css-pseudo-4] Add a pseudo-element to style all highlight pseudo-elements (#9091)

dbaron has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-pseudo-4] Add a pseudo-element to style all highlight pseudo-elements ==
A proposal I made during the discussion in https://github.com/w3c/csswg-drafts/issues/6641#issuecomment-1642386369 is that, given the model proposed in #6641 for how custom properties work on highlight pseudo-elements, is that we should have a pseudo-element that matches *all* of the highlight pseudo elements.  (This means both the [Higlight Pseudos](https://www.w3.org/TR/css-pseudo-4/#highlight-pseudos) and [Custom Highlight Pseudos](https://www.w3.org/TR/css-highlight-api-1/#styling-highlights).)

This is a slightly new concept because it means that when an implementation resolves the `::selection` pseudo-element (for example), it needs to look at selectors involving `::selection` and also the selectiors involving this new pseudo-element.  Or, to think about it another way, this is sort of like a pseudo-element alias.  That said, I think that still seems like a relatively straightforward feature.

This feature would make it easier for authors who are changing custom properties in a subtree to make sure that those custom properties will work correctly across all the highlight pseudo-elements, without needing to know exactly which highlight pseudo-elements will use the custom properties that they're modifying.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9091 using your GitHub account


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

Received on Wednesday, 19 July 2023 16:26:59 UTC