Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 79b8df526100e9ab5ae9fa45da73c00f595abdc0
https://github.com/WebKit/WebKit/commit/79b8df526100e9ab5ae9fa45da73c00f595abdc0
Author: Kiet Ho <[email protected]>
Date: 2025-04-06 (Sun, 06 Apr 2025)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/base-style-invalidation-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/try-tactic-alignment-expected.txt
M Source/WebCore/style/AnchorPositionEvaluator.cpp
M Source/WebCore/style/StyleBuilderConverter.h
Log Message:
-----------
[css-anchor-position-1] Implement swapping due to a try-tactic for
self-alignment properties
rdar://148137397
https://bugs.webkit.org/show_bug.cgi?id=290665
Reviewed by Antti Koivisto.
This commit implements swapping due to a try-tactic [1] for self-alignment
properties (align-self and justify-self)
[1]: https://drafts.csswg.org/css-anchor-position-1/#swap-due-to-a-try-tactic
*
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/base-style-invalidation-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/try-tactic-alignment-expected.txt:
* Source/WebCore/style/AnchorPositionEvaluator.cpp:
(WebCore::Style::flipStart):
- Swap values of align-self and justify-self when applying flip-start
tactic.
* Source/WebCore/style/StyleBuilderConverter.h:
(WebCore::Style::oppositeItemPosition):
- Add function to flip ItemPosition values.
(WebCore::Style::BuilderConverter::convertSelfOrDefaultAlignmentData):
- Flip position value when a position-try fallback is specified
and the current property is align-self or justify-self.
Canonical link: https://commits.webkit.org/293328@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