Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / transitions / transition-end-event-unprefixed-02.html
blob8bde0b998e748af330008ac3d516158b92f7bcf3
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 .box {
6 position: relative;
7 left: 0;
8 height: 100px;
9 width: 100px;
10 margin: 10px;
11 background-color: blue;
12 transition-property: left;
13 transition-duration: 0.5s;
14 -webkit-transition-property: left;
15 -webkit-transition-duration: 0.5s;
17 </style>
18 <script src="transition-end-event-helpers.js"></script>
19 <script type="text/javascript">
21 var expectedEndEvents = [
22 // [property-name, element-id, elapsed-time, listen]
23 ["left", "box1", 0.5, false]
26 function setupTest()
28 var box = document.getElementById('box1');
29 document.addEventListener('webkitTransitionEnd', recordTransitionEndEvent, false);
30 document.addEventListener('transitionend', recordTransitionEndEvent, false);
31 box.style.left = '200px';
34 runTransitionTest(expectedEndEvents, setupTest);
35 </script>
36 </head>
37 <body>
39 <p>Initiating a transition catching one transition event only despite listening the prefixed and unprefixed event.</p>
41 <div id="container">
42 <div id="box1" class="box"></div>
43 </div>
45 <div id="result"></div>
47 </body>
48 </html>