Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b55bdc1fd5662f0c0f5e12a3a1d72308b40a054d
https://github.com/WebKit/WebKit/commit/b55bdc1fd5662f0c0f5e12a3a1d72308b40a054d
Author: Elika Etemad <[email protected]>
Date: 2026-04-27 (Mon, 27 Apr 2026)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-visibility-anchor-valid.tentative-expected.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-visibility-anchor-valid.tentative.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-visibility-anchor-visible-expected.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-visibility-anchor-visible.html
M Source/WebCore/css/CSSProperties.json
M Source/WebCore/css/CSSValueKeywords.in
M Source/WebCore/style/AnchorPositionEvaluator.cpp
M Source/WebCore/style/StyleTreeResolver.cpp
M Source/WebCore/style/computed/data/StyleNonInheritedRareData.h
M Source/WebCore/style/values/anchor-position/StylePositionVisibility.h
M Source/WebCore/style/values/primitives/StyleKeyword+Mappings.h
Log Message:
-----------
Accept anchor-* as aliases of anchors-* in position-visibility
https://bugs.webkit.org/show_bug.cgi?id=311854
rdar://174438361
Reviewed by Antti Koivisto.
In https://github.com/w3c/csswg-drafts/issues/10201 the `anchors-visible`
keyword was renamed to `anchor-visible` to better reflect its behavior.
Renaming `anchors-valid` to match wasn't considered, so this question
was returned to the WG for consideration.
While they figure out what to do, we should accept both spellings,
to minimize the chances of compat problems down the line.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-visibility-anchor-valid.tentative-expected.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-visibility-anchor-valid.tentative.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-visibility-anchor-visible-expected.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-visibility-anchor-visible.html:
Added.
Add anchor-* variants of a couple tests to make sure it parses and behaves
correctly.
* Source/WebCore/css/CSSPrimitiveValueMappings.h:
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/CSSValueKeywords.in:
* Source/WebCore/style/AnchorPositionEvaluator.cpp:
(WebCore::Style::AnchorPositionEvaluator::updateScrollAdjustments):
* Source/WebCore/style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::updateForPositionVisibility):
* Source/WebCore/style/computed/data/StyleNonInheritedRareData.h:
* Source/WebCore/style/values/anchor-position/StylePositionVisibility.h:
Aliasing.
Canonical link: https://commits.webkit.org/312080@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications