Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3286a2880158270dee0e75025413395f58459132
      
https://github.com/WebKit/WebKit/commit/3286a2880158270dee0e75025413395f58459132
  Author: Antti Koivisto <[email protected]>
  Date:   2025-10-10 (Fri, 10 Oct 2025)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-conditional/container-queries/container-for-shadow-dom-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-conditional/container-queries/container-for-shadow-dom.html
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-conditional/container-queries/container-units-shadow-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-conditional/container-queries/style-container-for-shadow-dom-expected.txt
    M Source/WebCore/css/CSSSelector.cpp
    M Source/WebCore/css/CSSSelector.h
    M Source/WebCore/style/ContainerQueryEvaluator.cpp
    M Source/WebCore/style/ElementRuleCollector.cpp

  Log Message:
  -----------
  REGRESSION (Safari 26): Container queries length unit wrong values
https://bugs.webkit.org/show_bug.cgi?id=300089
rdar://161897768

Reviewed by Alan Baradlay.

Fix computation of the originating element for pseudo-elements.

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-conditional/container-queries/container-for-shadow-dom-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-conditional/container-queries/container-for-shadow-dom.html:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-conditional/container-queries/container-units-shadow-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-conditional/container-queries/style-container-for-shadow-dom-expected.txt:
* Source/WebCore/css/CSSSelector.cpp:
(WebCore::CSSSelector::precedingInCompound const):
(WebCore::complexSelectorMatchesElementBackedPseudoElement):

Add a helper.

* Source/WebCore/css/CSSSelector.h:
* Source/WebCore/style/ContainerQueryEvaluator.cpp:
(WebCore::Style::ContainerQueryEvaluator::selectContainer):

Traverse the flat tree ancestors instead of "shadow-including inclusive 
ancestors".

* Source/WebCore/style/ElementRuleCollector.cpp:
(WebCore::Style::ElementRuleCollector::containerQueriesMatch):

Only use SelectionMode::PseudoElement for pseudo-elements that are not element 
backed (not ::slotted() or ::part()).

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to