Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / transitions / transition-end-event-window.html
blobf355c5178ea7723b54792e9e541cf3de6c26349d
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, false]
23 function setupTest()
25 window.onwebkittransitionend = recordTransitionEndEvent;
27 var box = document.getElementById('box1');
28 box.style.left = '200px';
31 runTransitionTest(expectedEndEvents, setupTest);
32 </script>
33 </head>
34 <body>
36 <p>Initiating a 500ms transition on the left property of box1 and catching it on the window.</p>
38 <div id="container">
39 <div id="box1" class="box"></div>
40 </div>
42 <div id="result"></div>
44 </body>
45 </html>