2 <script src=
"../resources/testharness.js"></script>
3 <script src=
"../resources/testharnessreport.js"></script>
11 animation: anim
1s paused;
16 <div id=
"target"></div>
19 var sheet
= document
.styleSheets
[0];
20 var rules
= sheet
.rules
;
21 var keyframes
= rules
[0];
23 assert_equals(parseInt(getComputedStyle(target
).left
), 100, 'left offset');
24 keyframes
.name
= 'foobar';
25 assert_equals(parseInt(getComputedStyle(target
).left
), 0, 'left offset');
26 keyframes
.name
= 'anim';
27 assert_equals(parseInt(getComputedStyle(target
).left
), 100, 'left offset');
29 }, "Check that changes to @keyframes name updates the animating element accordingly");