2 <script src=
"../resources/testharness.js"></script>
3 <script src=
"../resources/testharnessreport.js"></script>
6 <div id='element'
></div>
10 var element
= document
.getElementById('element');
11 var container
= document
.getElementById('container');
14 container
.style
.fontSize
= '10px';
15 var player
= element
.animate([{translate
: '1em 2em'}, {translate
: '10em 20em'}], 10);
17 player
.currentTime
= 2;
18 container
.style
.fontSize
= '20px';
19 assert_equals(getComputedStyle(element
).translate
, '56px 112px');
20 }, 'Translate responsive to font size changes');