Skip to content

[css-contain-2] Should CSS highlights make content relevant to the user? #9277

@nt1m

Description

@nt1m

This section is ambiguous: https://drafts.csswg.org/css-contain/#relevant-to-the-user , it only mentions selection, but also links to https://drafts.csswg.org/css-pseudo-4/#highlight-pseudos

More-over, scroll to text fragment seems to have some integration in https://searchfox.org/wubkat/source/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-048.html

So it's not obvious which CSS highlight pseudos should trigger content relevancy. Can we get a clarification on which of these trigger content relevancy?

  • ::target-text
  • ::spelling-error / ::grammar-error
  • ::highlight(*)

cc @frivoal @tabatkins @vmpstr @fantasai

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions