10 background-color: blue;
11 -webkit-transition: left
1s linear;
17 <script src=
"../animations/resources/animation-test-helpers.js"></script>
19 const expectedValues
= [
20 // [time, element-id, property, expected-value, tolerance]
21 [0.5, "box1", "left", 200, 4],
22 [0.5, "box2", "left", 322, 4],
23 [0.5, "box3", "left", 126, 4],
24 [0.5, "box4", "left", 273, 4],
25 [0.5, "box5", "left", 200, 4],
30 document
.getElementById('container').className
= 'animating';
33 runTransitionTest(expectedValues
, setupTest
);
39 <div id=
"box1" class=
"box" style=
"-webkit-transition-timing-function: linear;"></div>
40 <div id=
"box2" class=
"box" style=
"-webkit-transition-timing-function: ease;"></div>
41 <div id=
"box3" class=
"box" style=
"-webkit-transition-timing-function: ease-in;"></div>
42 <div id=
"box4" class=
"box" style=
"-webkit-transition-timing-function: ease-out;"></div>
43 <div id=
"box5" class=
"box" style=
"-webkit-transition-timing-function: ease-in-out;"></div>
46 <div id=
"result"></div>