10 background-color: blue;
11 -webkit-transition-property: width, left, background-color, height, top;
12 -webkit-transition-duration:
0.5s;
20 background-color: red;
26 background-color: green;
29 -webkit-transition-duration:
0.7s;
33 <script src=
"transition-end-event-helpers.js"></script>
34 <script type=
"text/javascript">
36 var expectedEndEvents
= [
37 // [property-name, element-id, elapsed-time, listen]
38 ["background-color", "box2", 0.5, false],
39 ["background-color", "box3", 0.7, false],
40 ["height", "box3", 0.7, false],
41 ["left", "box1", 0.5, false],
42 ["left", "box2", 0.5, false],
43 ["left", "box3", 0.7, false],
44 ["width", "box3", 0.7, false],
49 var boxes
= document
.body
.getElementsByClassName('box');
50 for (var i
= 0; i
< boxes
.length
; ++i
) {
51 boxes
[i
].addEventListener("webkitTransitionEnd", recordTransitionEndEvent
, false);
52 boxes
[i
].className
= "box box" + (i
+1);
56 runTransitionTest(expectedEndEvents
, setupTest
);
61 <p>Initiating transitions on various properties of all boxes.
</p>
64 <div id=
"box1" class=
"box"></div>
65 <div id=
"box2" class=
"box"></div>
66 <div id=
"box3" class=
"box"></div>
69 <div id=
"result"></div>