[webkit-changes] [WebKit/WebKit] 9cf827: [css-anchor-position-1] Add restrictions on valid ...
David Choi
noreply at github.com
Tue Aug 13 08:09:12 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9cf82786bf79ae7bae6d9e38b2b0f0277f661be1
https://github.com/WebKit/WebKit/commit/9cf82786bf79ae7bae6d9e38b2b0f0277f661be1
Author: David Choi <davidchoi1027 at gmail.com>
Date: 2024-08-13 (Tue, 13 Aug 2024)
Changed paths:
M Source/WebCore/style/AnchorPositionEvaluator.cpp
M Source/WebCore/style/StyleTreeResolver.cpp
Log Message:
-----------
[css-anchor-position-1] Add restrictions on valid anchor and anchor-positioned elements
https://bugs.webkit.org/show_bug.cgi?id=277969
rdar://133705664
Reviewed by Antti Koivisto.
This patch ensures that anchor elements generate a principal box.
It also explicitly prevents in-flow elements and pseudo-elements from
being anchor-positioned. (Pseudo-element support should come later.)
* Source/WebCore/style/AnchorPositionEvaluator.cpp:
(WebCore::Style::AnchorPositionEvaluator::resolveAnchorValue):
* Source/WebCore/style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::updateAnchorPositioningState):
Canonical link: https://commits.webkit.org/282166@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list