Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 335d97ee53b6878be6a3ccc94f56b645faaa7383
      
https://github.com/WebKit/WebKit/commit/335d97ee53b6878be6a3ccc94f56b645faaa7383
  Author: Anne van Kesteren <[email protected]>
  Date:   2026-03-23 (Mon, 23 Mar 2026)

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/css/selectors/active-toplayer-001-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/css/selectors/active-toplayer-001.html
    A 
LayoutTests/imported/w3c/web-platform-tests/css/selectors/focus-within-toplayer-001-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/css/selectors/focus-within-toplayer-001.html
    A 
LayoutTests/imported/w3c/web-platform-tests/css/selectors/hover-toplayer-001-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/css/selectors/hover-toplayer-001.html
    A 
LayoutTests/imported/w3c/web-platform-tests/css/selectors/toplayer-transition-001-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/css/selectors/toplayer-transition-001.html
    M 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/customizable-select/select-picker-hover-active-pseudo-expected.txt
    M LayoutTests/platform/ios/TestExpectations
    A 
LayoutTests/platform/ios/imported/w3c/web-platform-tests/css/selectors/toplayer-transition-001-expected.txt
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/dom/Document.h
    M Source/WebCore/dom/Element.cpp

  Log Message:
  -----------
  Make :active, :focus-within, and :hover account for top layer
https://bugs.webkit.org/show_bug.cgi?id=310365

Reviewed by Ryosuke Niwa.

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
       
imported/w3c/web-platform-tests/css/selectors/toplayer-transition-001.html

Upstream:

    https://github.com/web-platform-tests/wpt/pull/58648

Canonical link: https://commits.webkit.org/309755@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to