2 <script src=
"../resources/testharness.js"></script>
3 <script src=
"../resources/testharnessreport.js"></script>
4 <div id='element'
></div>
7 transition: background
100ms;
12 var t
= async_test('Replaying a transition after it has finished should not trigger a new transition');
15 element
.offsetTop
; // Force recalc
16 element
.style
.background
= "green";
17 element
.offsetTop
; // Force recalc
19 assert_equals(document
.timeline
.getAnimations().length
, 1);
20 var animation
= document
.timeline
.getAnimations()[0];
21 animation
.onfinish = function() {
22 requestAnimationFrame(function() {
23 requestAnimationFrame(function() {
24 animation
.startTime
= document
.timeline
.currentTime
- 10;
25 animation
.onfinish
= t
.done
.bind(t
);