Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / transitions / transition-end-event-left.html
blob7c7e2ff2e3ab0449ed3d2f1f3fa0ac5ba215ff00
1 <html>
2 <head>
3 <style>
4 .box {
5 position: relative;
6 left: 0;
7 height: 100px;
8 width: 100px;
9 margin: 10px;
10 background-color: blue;
11 -webkit-transition-property: left;
12 -webkit-transition-duration: 0.5s;
14 </style>
15 <script src="transition-end-event-helpers.js"></script>
16 <script type="text/javascript">
18 var expectedEndEvents = [
19 // [property-name, element-id, elapsed-time, listen]
20 ["left", "box1", 0.5, true]
23 function setupTest()
25 var box = document.getElementById('box1');
26 box.style.left = '200px';
29 runTransitionTest(expectedEndEvents, setupTest);
30 </script>
31 </head>
32 <body>
34 <p>Initiating a 500ms transition on the left property of box1.</p>
36 <div id="container">
37 <div id="box1" class="box"></div>
38 </div>
40 <div id="result"></div>
42 </body>
43 </html>