[webkit-changes] [WebKit/WebKit] 8a947a: [CSS] Fix wrong scoping roots with nested @scope
Matthieu Dubet
noreply at github.com
Tue Dec 12 10:23:34 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8a947a7a91b87990311a8accea11c2acf7446439
https://github.com/WebKit/WebKit/commit/8a947a7a91b87990311a8accea11c2acf7446439
Author: Matthieu Dubet <m_dubet at apple.com>
Date: 2023-12-12 (Tue, 12 Dec 2023)
Changed paths:
M LayoutTests/fast/css/scope-at-rule-expected.html
M LayoutTests/fast/css/scope-at-rule.html
M Source/WebCore/style/RuleSet.cpp
Log Message:
-----------
[CSS] Fix wrong scoping roots with nested @scope
https://bugs.webkit.org/show_bug.cgi?id=266248
rdar://119511916
Reviewed by Tim Nguyen.
The @scope are stored from child to parent (innermost to outermost)
while the scoping roots are evaluated in the reverse order.
This patch uses outermost to innermost for everything.
* LayoutTests/fast/css/scope-at-rule-expected.html:
* LayoutTests/fast/css/scope-at-rule.html:
* Source/WebCore/style/RuleSet.cpp:
(WebCore::Style::RuleSet::scopeRulesFor const):
Canonical link: https://commits.webkit.org/271941@main
More information about the webkit-changes
mailing list