Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / transitions / transition-end-event-multiple-01.html
blob6b56c44f42e2902e729f82b8fa3d3b58d14b596f
1 <html>
2 <head>
3 <title>Transition End Events</title>
4 <style type="text/css" media="screen">
5 .box {
6 position: relative;
7 left: 0;
8 height: 100px;
9 width: 100px;
10 margin: 10px;
11 background-color: blue;
12 -webkit-transition-property: width, left, background-color, height, top;
13 -webkit-transition-duration: 0.5s;
15 </style>
16 <script src="transition-end-event-helpers.js" type="text/javascript" charset="utf-8"></script>
17 <script type="text/javascript" charset="utf-8">
19 var expectedEndEvents = [
20 // [property-name, element-id, elapsed-time, listen]
21 ["background-color", "box1", 0.5, false],
22 ["height", "box1", 0.5, false],
23 ["left", "box1", 0.5, false],
24 ["width", "box1", 0.5, false],
27 function setupTest()
29 var box = document.getElementById("box1");
30 box.addEventListener("webkitTransitionEnd", recordTransitionEndEvent, false);
31 box.style.width = "150px";
32 box.style.left = '200px';
33 box.style.backgroundColor = 'red';
34 box.style.height = '80px';
37 runTransitionTest(expectedEndEvents, 0.7, setupTest);
39 </script>
40 </head>
41 <body>
43 <p>Initiating a 500ms transition on the left, background-color, width and height properties of box1.</p>
45 <div id="container">
46 <div id="box1" class="box"></div>
47 </div>
49 <div id="result"></div>
51 </body>
52 </html>