2 <script src=
"../resources/testharness.js"></script>
3 <script src=
"../resources/testharnessreport.js"></script>
5 <div id='element'
></div>
9 var container
= document
.getElementById('container');
10 var element
= document
.getElementById('element');
14 {fontWeight
: 'bolder'},
15 {fontWeight
: 'bolder'}
18 container
.style
.fontWeight
= '100';
19 var player
= element
.animate(keyframes
, 10);
21 player
.currentTime
= 5;
22 fontWeight
= getComputedStyle(element
).fontWeight
;
23 container
.style
.fontWeight
= '800';
24 assert_not_equals(getComputedStyle(element
).fontWeight
, fontWeight
);
25 }, 'Relative font weight bolder responsive to style changes');
29 {fontWeight
: 'lighter'},
30 {fontWeight
: 'lighter'}
33 container
.style
.fontWeight
= '900';
34 var player
= element
.animate(keyframes
, 10);
36 player
.currentTime
= 5;
37 fontWeight
= getComputedStyle(element
).fontWeight
;
38 container
.style
.fontWeight
= '200';
39 assert_not_equals(getComputedStyle(element
).fontWeight
, fontWeight
);
40 }, 'Relative font weight lighter responsive to style changes');