Re: [csswg-drafts] [CSS Pseudo] Revisit CSS Custom Properties in highlight pseudos (#9909)

What about a combination where you look at the originating element and then the highlight pseudo of the parent until you end up at the root? That would be least confusing to authors.

For example, this markup:

```html
<html>
  <body>
    <div>
      <p>…</p>
    </div>
  </body>
<html>
```

When selecting text in the paragrph, this would be the lookup chain:

- p::selection
- p
- div::selection
- div
- body::selection
- body
- :root::selection
- :root

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


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

Received on Friday, 16 February 2024 04:22:32 UTC