diff --git a/css/css-transitions/event-dispatch.tentative.html b/css/css-transitions/event-dispatch.tentative.html index 9e4946cf336ad0..5ed01cdd2588d1 100644 --- a/css/css-transitions/event-dispatch.tentative.html +++ b/css/css-transitions/event-dispatch.tentative.html @@ -414,4 +414,22 @@ await waitForAnimationFrames(2); }, 'Cancel the transition after clearing the target effect'); +promise_test(async t => { + const { transition, watcher, div } = setupTransition(t, 'margin-left 100s'); + + // Seek to After phase. + transition.finish(); + const events = await watcher.wait_for( + ['transitionrun', 'transitionstart', 'transitionend'], + { + record: 'all', + } + ); + + transition.cancel(); + + // Then wait a couple of frames and check that no event was dispatched + await waitForAnimationFrames(2); +}, 'Cancel the transition after it finishes'); +