Re: [csswg-drafts] [css-pseudo-4] Add highlight pseudo for in-page search (#3812)

What system color keywords will be assigned? I am assuming `Highlight` and `HighlightText`.

For context, [§ 3.3. Default UA Styles](https://www.w3.org/TR/css-pseudo-4/#highlight-pseudos) defines `text-decoration-line` for `::spelling-error` and `::grammar-error`. But highlighted text is mapped to background and foreground colors:

> Some [highlight pseudo-elements](https://www.w3.org/TR/css-pseudo-4/#highlight-pseudo-element) should have paired default highlight colors—a default [color](https://www.w3.org/TR/css-color-4/#propdef-color) and [background-color](https://www.w3.org/TR/css-backgrounds-3/#propdef-background-color) provided by the UA that are either used or overridden together, see [§ 3.3.1 Paired Defaults](https://www.w3.org/TR/css-pseudo-4/#paired-defaults). For [::selection](https://www.w3.org/TR/css-pseudo-4/#selectordef-selection) they should correspond to [HighlightText](https://www.w3.org/TR/css-color-4/#valdef-system-color-highlighttext) and [Highlight](https://www.w3.org/TR/css-color-4/#valdef-system-color-highlight), while for [::target-text](https://www.w3.org/TR/css-pseudo-4/#selectordef-target-text) they should correspond to [MarkText](https://www.w3.org/TR/css-color-4/#valdef-system-color-marktext) and [Mark](https://www.w3.org/TR/css-color-4/#valdef-system-color-mark).

I could not find this in the related issues, so apologies if my search-fu was terrible.

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


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

Received on Monday, 6 May 2024 13:02:07 UTC