E473 [css-highlight-api] Should ::highlights be printed? · Issue #7499 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-highlight-api] Should ::highlights be printed? #7499

@dandclark

Description

@dandclark

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0