Re: [csswg-drafts] [css-highlight-api] Should ::highlights be printed? (#7499)

> Besides, authors can opt out of the styling if they want to, using things like `@media print`, which they cannot do if we suppress it anyway.

Maybe in this case we should, similar to View Transitions, allow an `*` as the `<custom-highlight-name>` in the pseudo?

That way, authors can use `::highlight(*)' to override all custom highlights in their print stylesheets if they want to choose not to print them.

```css
@media print {
  ::highlight(*) {
    color: black;
  }
}
```

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


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

Received on Monday, 10 June 2024 14:36:15 UTC