Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 095e0991651ff2c57d9f3ccf57d1b0d447f62b47
https://github.com/WebKit/WebKit/commit/095e0991651ff2c57d9f3ccf57d1b0d447f62b47
Author: Kiet Ho <[email protected]>
Date: 2025-10-16 (Thu, 16 Oct 2025)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/last-successful-change-try-rule-expected.txt
M Source/WebCore/css/CSSPositionTryDescriptors.cpp
M Source/WebCore/css/CSSPositionTryDescriptors.h
M Source/WebCore/css/PropertySetCSSDescriptors.h
Log Message:
-----------
[css-anchor-position-1] Invalidate all remembered last successful position
option when @position-try mutates
rdar://162555785
https://bugs.webkit.org/show_bug.cgi?id=300657
Reviewed by Antti Koivisto.
This patch invalidates all remembered last successful position option when a
property inside @position-try rule mutates, per spec. This is done by making
PropertySetCSSDescriptors::setPropertyInternal virtual, and providing an
override
in CSSPositionTryDescriptors that invalidates the remembered position options.
This is the bare minimum needed to pass the test.
Test:
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/last-successful-change-try-rule.html
*
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/last-successful-change-try-rule-expected.txt:
* Source/WebCore/css/CSSPositionTryDescriptors.cpp:
(WebCore::CSSPositionTryDescriptors::setPropertyInternal):
* Source/WebCore/css/CSSPositionTryDescriptors.h:
* Source/WebCore/css/PropertySetCSSDescriptors.h:
Canonical link: https://commits.webkit.org/301617@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