Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c27f12a8d6a47aa09c52499a2d756218f0c0ab44
https://github.com/WebKit/WebKit/commit/c27f12a8d6a47aa09c52499a2d756218f0c0ab44
Author: Antti Koivisto <[email protected]>
Date: 2025-09-22 (Mon, 22 Sep 2025)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-try-tree-scoped-expected.txt
M Source/WebCore/style/StyleScope.cpp
M Source/WebCore/style/StyleScope.h
M Source/WebCore/style/StyleTreeResolver.cpp
Log Message:
-----------
[css-anchor-position-1] Resolve position-try-fallback names as tree-scoped
references
https://bugs.webkit.org/show_bug.cgi?id=299279
rdar://161081231
Reviewed by Alan Baradlay.
"If an at-rule or property defines a name that other CSS constructs can refer
to it by, ... it must be defined as a tree-scoped name."
https://drafts.csswg.org/css-scoping-1/#shadow-names
*
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-try-tree-scoped-expected.txt:
* Source/WebCore/style/StyleScope.cpp:
(WebCore::Style::Scope::hostScope const):
* Source/WebCore/style/StyleScope.h:
(WebCore::Style::Scope::resolveTreeScopedReference):
Add a generic helper for resolving tree-scoped references.
* Source/WebCore/style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::generatePositionOption):
Search all the relevant scopes.
Canonical link: https://commits.webkit.org/300333@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