Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / transitions / transition-end-event-nested.html
blobdb5a46c7bdda8bcb705fa7f4d467261588cf07b1
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: width, left, background-color, height, top;
12 -webkit-transition-duration: 0.2s;
15 .box1 {
16 left: 50px;
19 .box2 {
20 background-color: red;
23 .box3 {
24 width: 150px;
25 -webkit-transition-duration: 0.3s;
28 </style>
29 <script src="transition-end-event-helpers.js"></script>
30 <script type="text/javascript">
32 var expectedEndEvents = [
33 // [property-name, element-id, elapsed-time, listen]
34 ["background-color", "box2", 0.2, false],
35 ["left", "box1", 0.2, false],
36 ["width", "box3", 0.3, false],
39 function handleEndEvent2(event)
41 recordTransitionEndEvent(event);
44 function startTransition2()
46 var box = document.getElementById("box3");
47 box.addEventListener("webkitTransitionEnd", handleEndEvent2, false);
48 box.className = "box box3";
51 function handleEndEvent1(event)
53 recordTransitionEndEvent(event);
55 setTimeout(startTransition2, 100);
58 function startTransition1()
60 var box = document.getElementById("box2");
61 box.addEventListener("webkitTransitionEnd", handleEndEvent1, false);
62 box.className = "box box2";
65 function handleEndEvent(event)
67 recordTransitionEndEvent(event);
69 setTimeout(startTransition1, 100);
72 function setupTest()
74 var box = document.getElementById("box1");
75 box.addEventListener("webkitTransitionEnd", handleEndEvent, false);
76 box.className = "box box1";
79 runTransitionTest(expectedEndEvents, setupTest);
80 </script>
81 </head>
82 <body>
84 <p>Initiating transitions on various properties of all boxes.</p>
86 <div id="container">
87 <div id="box1" class="box"></div>
88 <div id="box2" class="box"></div>
89 <div id="box3" class="box"></div>
90 </div>
92 <div id="result"></div>
94 </body>
95 </html>