15 background-color: green;
16 -webkit-transition-duration:
1s;
20 -webkit-transition-property: left;
28 -webkit-transition-property: -webkit-transform;
32 transform: translateX(
400px);
39 background-color: red;
43 <script src=
"../animations/resources/animation-test-helpers.js"></script>
46 const expectedValues
= [
47 // [time, element-id, property, expected-value, tolerance]
48 [0.5, 'box', 'left', 322, 5],
49 [0.5, 'box2', '-webkit-transform.4', 322, 5],
54 document
.getElementById('box').className
= 'box final';
55 document
.getElementById('box2').className
= 'box final';
58 runTransitionTest(expectedValues
, setupTest
);
63 <!-- The pixel result should show a green bar, with no red visible. -->
64 <div class=
"container">
65 <div id=
"indicator" class=
"box"></div>
67 <div id=
"box" class=
"box"></div>
68 <div id=
"box2" class=
"box"></div>
71 <div id=
"result"></div>