Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3bde74e861e777a7cb3de1184a446a91cb63dab6
https://github.com/WebKit/WebKit/commit/3bde74e861e777a7cb3de1184a446a91cb63dab6
Author: Nathan Solomon <[email protected]>
Date: 2026-05-07 (Thu, 07 May 2026)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/transition-cancel-elapsed-time-on-removal-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/transition-cancel-elapsed-time-on-removal.html
A
LayoutTests/imported/w3c/web-platform-tests/web-animations/interfaces/Animation/cancel-event-on-element-removal-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/web-animations/interfaces/Animation/cancel-event-on-element-removal.html
Log Message:
-----------
Add tests for animation cancel events on element removal
rdar://175873288
https://bugs.webkit.org/show_bug.cgi?id=313681
Reviewed by Antoine Quint.
Add test coverage for cancel events fired when an element with running
animations is removed from the DOM.
One WPT test added verifies that the Web Animations API cancel event
(AnimationPlaybackEvent) fires on the Animation object when its target
element is removed. This test defends against changes that skip the
playState() != Idle block in WebAnimation::cancel, which would
silently drop the event.
The second WPT test added verifies that transitioncancel's elapsedTime is
non-zero when an element is removed mid-transition. This defends
against changes that compute the cancellation time after the
animation has been made idle, which would report elapsedTime as 0
instead of the actual elapsed time.
No existing tests covered either of these behaviors.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/transition-cancel-elapsed-time-on-removal-expected.txt:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/transition-cancel-elapsed-time-on-removal.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/web-animations/interfaces/Animation/cancel-event-on-element-removal-expected.txt:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/web-animations/interfaces/Animation/cancel-event-on-element-removal.html:
Added.
Canonical link: https://commits.webkit.org/312836@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications