9 font-family: sans-serif;
10 -webkit-transition: font-size
2s linear;
16 font-family: sans-serif;
24 <script src=
"../animations/resources/animation-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
25 <script type=
"text/javascript" charset=
"utf-8">
26 const expectedValues = [
27 // [time, element-id, property, expected-value, tolerance]
28 [
1, 'box', 'font-size',
15,
2, checkSize],
33 var boxWidth = document.getElementById('box').offsetWidth;
34 var controlWidth = document.getElementById('control').offsetWidth;
36 if (isCloseEnough(boxWidth, controlWidth,
2))
37 result =
"PASS: width is close to control";
39 result =
"FAIL: width was " + boxWidth +
", should have been " + controlWidth;
46 document.getElementById('box').className = 'changed';
49 runTransitionTest(expectedValues, setupTest);
53 <div id=
"box">Here is some text
</div>
55 <div id=
"control">Here is some text
</div>
56 <div id=
"result"></div>