Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7ba79ac091099d606a5ee5a30549045f8de20d5a
      
https://github.com/WebKit/WebKit/commit/7ba79ac091099d606a5ee5a30549045f8de20d5a
  Author: Kiet Ho <[email protected]>
  Date:   2026-08-05 (Wed, 05 Aug 2026)

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

  Log Message:
  -----------
  [css-conditional-5] @container: originating element of ::part() is the 
element itself
rdar://183154183
https://bugs.webkit.org/show_bug.cgi?id=320208

Reviewed by Antti Koivisto and Tim Nguyen.

When determining the container element to query against, if the element
is from a ::part() pseudo-element, ContainerQueryEvaluator::selectContainer
picks element->assignedSlot() as the originating element. This seems wrong,
as in this case, the originating element is the element itself.

Test: 
imported/w3c/web-platform-tests/css/css-conditional/container-queries/style-container-for-shadow-dom.html

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-conditional/container-queries/style-container-for-shadow-dom-expected.txt:
* Source/WebCore/style/ContainerQueryEvaluator.cpp:
(WebCore::Style::ContainerQueryEvaluator::selectContainer):

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



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

Reply via email to