[csswg-drafts] [css-pseudo] [css-highlight-api] styling of highlight descendants (#7120)

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

== [css-pseudo] [css-highlight-api] styling of highlight descendants ==
It isn't clear to me if this is supported and if it is, what it does;

```css
a {
  color: red;
}

:root::highlight(example) a {
  color: black;
  background-color:yellow;
}
```

1. I'd like to be able to style elements contained in highlights.
2. Imagine the highlight starts at the beginning of a paragraph and ends halfway-through an anchor within the paragraph. What I'd like to happen here is that the first half of the anchor is red (text colour) and the second half is black.

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


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

Received on Tuesday, 8 March 2022 18:29:27 UTC