2 <script src=
"../resources/testharness.js"></script>
3 <script src=
"../resources/testharnessreport.js"></script>
6 var t
= async_test('Transition end event should fire even if it completes in an on-demand timing update');
8 window
.ontransitionend = function() {
12 document
.timeline
.playbackRate
= 0;
13 document
.timeline
.currentTime
= 0;
15 requestAnimationFrame(function() {
16 document
.body
.style
.transition
= 'background 100ms';
17 document
.body
.style
.background
= 'green';
19 setTimeout(function() {
20 document
.timeline
.currentTime
= 100;
21 document
.body
.offsetTop
; // Forces a style recalc, on-demand timing update.