Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 39f1479785a288de9b888aff68ebd47cb71817df
https://github.com/WebKit/WebKit/commit/39f1479785a288de9b888aff68ebd47cb71817df
Author: Cameron McCormack <[email protected]>
Date: 2026-07-02 (Thu, 02 Jul 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/dynamic-stylesheet-animations-timing-function-expected.txt
M Source/WebCore/dom/ViewTransition.cpp
M Source/WebCore/style/StyleDocumentScope.cpp
M Source/WebCore/style/StyleDocumentScope.h
Log Message:
-----------
Dynamic stylesheet mutation loses running view transition group keyframes
https://bugs.webkit.org/show_bug.cgi?id=318305
rdar://181100818
Reviewed by Tim Nguyen.
The UA @keyframes for the group animation were added directly to the style
resolver's keyframe map, which is destroyed when the resolver is cleared by a
stylesheet mutation during the transition. Retain them on the DocumentScope
(like the dynamic view transition style rules) and re-establish them when the
resolver is recreated, clearing them when the transition ends.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/dynamic-stylesheet-animations-timing-function-expected.txt:
* Source/WebCore/dom/ViewTransition.cpp:
(WebCore::ViewTransition::setupDynamicStyleSheet):
* Source/WebCore/style/StyleDocumentScope.cpp:
(WebCore::Style::DocumentScope::createDocumentResolver):
(WebCore::Style::DocumentScope::clearViewTransitionStyles):
(WebCore::Style::DocumentScope::addViewTransitionKeyframes):
* Source/WebCore/style/StyleDocumentScope.h:
Canonical link: https://commits.webkit.org/316436@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications