1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
6 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
12 border:
1px solid black;
19 background-color: green;
25 background-color: red;
28 #container.moved .hardware {
29 -webkit-animation: move
300ms linear;
33 -webkit-transform: translate3d(
0,
0,
0);
36 @-webkit-keyframes move {
37 from { -webkit-transform: translate3d(
0,
0,
0); }
38 to { -webkit-transform: translate3d(
300px,
0,
0); }
41 <script type=
"text/javascript" charset=
"utf-8">
45 if (window.layoutTestController)
46 layoutTestController.notifyDone();
51 if (window.layoutTestController)
52 layoutTestController.waitUntilDone();
54 document.getElementById('tester').addEventListener('webkitAnimationEnd', testEnded, false);
55 document.getElementById('container').className = 'moved';
58 window.addEventListener('load', startTest, false);
63 <p>At the end of the test the green box should obscure the red box.
</p>
65 <div class=
"indicator box"></div>
66 <div id=
"tester" class=
"hardware box"></div>