14 background-color: green;
15 -webkit-transition-duration: 1s;
19 -webkit-transition-property: left;
27 -webkit-transition-property: -webkit-transform;
31 -webkit-transform: translateX(400px);
38 background-color: red;
42 <script src="resources/transition-test-helpers.js"></script>
45 const expectedValues = [
46 // [time, element-id, property, expected-value, tolerance]
47 [0.5, 'box', 'left', 322, 5],
48 [0.5, 'box2', '-webkit-transform.4', 322, 5],
53 document.getElementById('box').className = 'box final';
54 document.getElementById('box2').className = 'box final';
57 var doPixelTest = true;
58 runTransitionTest(expectedValues, setupTest, usePauseAPI, doPixelTest);
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>