classifies "selection" web feature #56825
Open
+45
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Web feature docs: https://github.com/web-platform-dx/web-features/blob/main/features/selection.yml
Note there are number of
highlight-*tests mapped here, but I limited the mappings to files that only to seem to test usage of::selectionsingularly (as opposed to other highlight pseudos.)Here's a list of exclusions for reference:
css/css-pseudos/highlight... - Multiple pseudos:
highlight-painting-003.html- tests::selection,::target-text,::spelling-error,::grammar-errorhighlight-painting-004.html- tests::selection,::target-text,::spelling-error,::grammar-errorhighlight-painting-currentcolor-*.html- tests::selection+::highlight()highlight-painting-shadows-*.html- tests::selection+::target-textcss/css-pseudo/highlight-cascade/highlight-cascade-010.html- tests::spelling-erroronlyhighlight-paired-cascade-004.html- tests::selection+::target-texthighlight-currentcolor-computed*.html- tests multiple pseudoshighlight-pseudos-*.html- tests multiple pseudoshighlight-currentcolor-root-*- some test both::selection+::highlight()As of 2025-12-05, the wpt-pr-bot is requesting reviews from code owners for changes to WEB_FEATURES.yml files. To learn more about the purpose of these files, check out this presentation from TPAC 2025, Annotating WPT to Surface the Status of the Platform