2 <script src=
"../resources/testharness.js"></script>
3 <script src=
"../resources/testharnessreport.js"></script>
5 <div id=
"target"></div>
8 var initial
= getComputedStyle(target
).background
;
9 var player
= target
.animate([{background
: 'blue'}, {background
: 'green'}], 1000);
10 assert_not_equals(getComputedStyle(target
).background
, initial
);
12 assert_equals(getComputedStyle(target
).background
, initial
);
13 }, "cancel() should cause effect to be cleared");