2 <script src=
"../resources/testharness.js"></script>
3 <script src=
"../resources/testharnessreport.js"></script>
6 from { background-color: blue; }
7 to { background-color: red; }
11 animation: anim
20s
10s paused linear;
15 background-color: green;
18 <div id=
"target"></div>
22 assert_equals(getComputedStyle(target
).backgroundColor
, 'rgb(0, 128, 0)', 'background color');
23 target
.style
.animationDelay
= '0s'; // Animation should start
24 assert_equals(getComputedStyle(target
).backgroundColor
, 'rgb(0, 0, 255)', 'background color');
26 target
.style
.animationDelay
= '-10s'; // Animation should be halfway between blue and red
27 assert_equals(getComputedStyle(target
).backgroundColor
, 'rgb(128, 0, 128)', 'background color');
29 }, "Check that changes to animation delay only applies before the animation has started");