Skip to content

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

@dbaron

Description

@dbaron

A proposal I made during the discussion in #6641 (comment) 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 and Custom Highlight Pseudos.)

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.

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

Status

Wednesday Afternoon

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions