Skip to content

CSS: more test coverage for :active/:focus-within/:hover in the top l…#58648

Open
annevk wants to merge 1 commit intomasterfrom
annevk/toplayer-pseudos
Open

CSS: more test coverage for :active/:focus-within/:hover in the top l…#58648
annevk wants to merge 1 commit intomasterfrom
annevk/toplayer-pseudos

Conversation

@annevk
Copy link
Member

@annevk annevk commented Mar 20, 2026

…ayer

annevk added a commit to annevk/WebKit that referenced this pull request Mar 20, 2026
https://bugs.webkit.org/show_bug.cgi?id=310365

Reviewed by NOBODY (OOPS!).

This implements the requirement from

    https://drafts.csswg.org/selectors/#useraction-pseudos

> Specifically, if these match on a given element, they also match on
> the element’s flat tree ancestors, up to and including the first top
> layer element or the root element, whichever is encountered first.

Tests: imported/w3c/web-platform-tests/css/selectors/active-toplayer-001.html
       imported/w3c/web-platform-tests/css/selectors/focus-within-toplayer-001.html
       imported/w3c/web-platform-tests/css/selectors/hover-toplayer-001.html

Upstream:

    web-platform-tests/wpt#58648
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants