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');
18 container
.style
.fontSize
= 'small';
19 var player
= element
.animate(keyframes
, 10);
21 player
.currentTime
= 5;
22 fontSize
= getComputedStyle(element
).fontSize
;
23 container
.style
.fontSize
= 'medium';
24 assert_not_equals(getComputedStyle(element
).fontSize
, fontSize
);
25 }, 'Relative font size larger responsive to style changes');
29 {fontSize
: 'smaller'},
33 container
.style
.fontSize
= 'large';
34 var player
= element
.animate(keyframes
, 10);
36 player
.currentTime
= 5;
37 fontSize
= getComputedStyle(element
).fontSize
;
38 container
.style
.fontSize
= 'medium';
39 assert_not_equals(getComputedStyle(element
).fontSize
, fontSize
);
40 }, 'Relative font size smaller responsive to style changes');