Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 27e097a3c04dc90b851283cd526f59f150a825d4
https://github.com/WebKit/WebKit/commit/27e097a3c04dc90b851283cd526f59f150a825d4
Author: Antti Koivisto <[email protected]>
Date: 2025-09-18 (Thu, 18 Sep 2025)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parent-after-change-style-pseudo-element-flicker-expected.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parent-after-change-style-pseudo-element-flicker-ref.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parent-after-change-style-pseudo-element-flicker.html
M Source/WebCore/style/StyleTreeResolver.cpp
Log Message:
-----------
Some page elements have a blue flicker (caused by @starting-style)
https://bugs.webkit.org/show_bug.cgi?id=299073
rdar://154228431
Reviewed by Alan Baradlay.
Seen in https://merlyndesignworks.co.uk/
Tests:
imported/w3c/web-platform-tests/css/css-animations/parent-after-change-style-pseudo-element-flicker-ref.html
imported/w3c/web-platform-tests/css/css-animations/parent-after-change-style-pseudo-element-flicker.html
*
LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parent-after-change-style-pseudo-element-flicker-expected.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parent-after-change-style-pseudo-element-flicker-ref.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parent-after-change-style-pseudo-element-flicker.html:
Added.
* Source/WebCore/style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::resolveAgainInDifferentContext):
We lose the pseudo-element bits when resolving after-change style via
TreeResolver::resolveAfterChangeStyleForNonAnimated.
Fix by transferring the bits over to the new style when doing another round of
resolving.
They are set by selector matching but here we are doing just style building.
As a drive-by fix, also transfer the pseudo-element name argument.
Canonical link: https://commits.webkit.org/300169@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