[webkit-changes] [WebKit/WebKit] 48fb05: [CSS Container Queries] Container for ::part pseud...
Antti Koivisto
noreply at github.com
Tue Aug 29 13:41:53 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 48fb05f652fabe37e6b455c8c06d6b680f808b98
https://github.com/WebKit/WebKit/commit/48fb05f652fabe37e6b455c8c06d6b680f808b98
Author: Antti Koivisto <antti at apple.com>
Date: 2023-08-29 (Tue, 29 Aug 2023)
Changed paths:
M LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-for-shadow-dom-expected.txt
M Source/WebCore/style/ContainerQueryEvaluator.cpp
M Source/WebCore/style/ContainerQueryEvaluator.h
M Source/WebCore/style/ElementRuleCollector.cpp
M Source/WebCore/style/ElementRuleCollector.h
Log Message:
-----------
[CSS Container Queries] Container for ::part pseudo-element should be selected from originating element tree
https://bugs.webkit.org/show_bug.cgi?id=260861
rdar://114626579
Reviewed by Alan Baradlay.
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-for-shadow-dom-expected.txt:
* Source/WebCore/style/ContainerQueryEvaluator.cpp:
(WebCore::Style::ContainerQueryEvaluator::selectContainer):
Add separate selection mode for ::part pseudo-element where we never look for container in the current tree.
* Source/WebCore/style/ContainerQueryEvaluator.h:
* Source/WebCore/style/ElementRuleCollector.cpp:
(WebCore::Style::ElementRuleCollector::matchPartPseudoElementRulesForScope):
Pass a bit via MatchRequest to indicate we are matching ::part pseudo-elements.
(WebCore::Style::ElementRuleCollector::containerQueriesMatch):
* Source/WebCore/style/ElementRuleCollector.h:
Canonical link: https://commits.webkit.org/267421@main
More information about the webkit-changes
mailing list