10 border:
1px solid black;
17 background-color: green;
23 background-color: red;
25 #container.moved .software {
29 #container.moved .hardware {
30 transform: translateX(
300px);
34 transform-style: preserve-
3d;
35 -webkit-transition: transform
300ms linear;
36 transform: translateX(
0);
40 <script src=
"../animations/resources/animation-test-helpers.js"></script>
41 <script type=
"text/javascript">
45 var testDiv
= document
.getElementById('tester');
46 testDiv
.style
.webkitTransitionProperty
= 'none';
47 testDiv
.style
.webkitTransitionDuration
= '0';
49 testDiv
.style
.webkitTransform
= 'translateX(150px)';
50 if (window
.testRunner
)
51 testRunner
.notifyDone();
56 if (window
.testRunner
)
57 testRunner
.waitUntilDone();
59 document
.getElementById('tester').addEventListener('webkitTransitionEnd', testEnded
, false);
60 document
.getElementById('container').className
= 'moved';
63 window
.addEventListener('load', startTest
, false);
68 <p>At the end of the test the green box should obscure the red box.
</p>
70 <div class=
"indicator box"></div>
71 <div id=
"tester" class=
"hardware box"></div>