2 <script src=
"../resources/testharness.js"></script>
3 <script src=
"../resources/testharnessreport.js"></script>
10 #target { animation: anim
2s -
1s linear paused; }
12 <div id=
"target"></div>
15 var sheet
= document
.styleSheets
[0];
16 var rules
= sheet
.rules
;
17 var keyframes
= rules
[0];
19 assert_approx_equals(parseFloat(getComputedStyle(target
).opacity
), 1.0, 0.001, 'opacity');
20 keyframes
.appendRule('50% { opacity: 0.0; }');
21 assert_approx_equals(parseFloat(getComputedStyle(target
).opacity
), 0.0, 0.001, 'opacity');
23 }, "Check that changes to a compositor animation via CSSOM update it accordingly");