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

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

== [css-highlight-api] Should ::highlights be printed? ==
Highlight pseudos are currently not printed, at least in the Chromium implementation.

Considering other pseudos like `::selection` and `::target-text`, it makes sense for these not to show up on printed documents. But for `::highlight` it's less clear. Highlights used for emphasizing parts of the text might be appropriate to print. In some applications highlights could convey specific semantic value, e.g. a language-teaching application might use differently-colored highlights to demonstrate which parts of a sentence are verbs vs adverbs vs adjectives, etc. The user would likely expect these highlights to be printed.

On the other hand, highlights used for custom find-on-page or spellcheck probably shouldn't be printed.

Whatever we decide, we should probably add some clarity about this to the spec.

Thanks @mrego for raising this point.

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


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

Received on Thursday, 14 July 2022 23:50:57 UTC