10 background-color: blue;
11 -webkit-transition-property: width, left, background-color, height, top;
12 -webkit-transition-duration:
0.5s;
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 ["background-color", "box1", 0.5, false],
21 ["height", "box1", 0.5, false],
22 ["left", "box1", 0.5, false],
23 ["width", "box1", 0.5, false],
28 var box
= document
.getElementById("box1");
29 box
.addEventListener("webkitTransitionEnd", recordTransitionEndEvent
, false);
30 box
.style
.width
= "150px";
31 box
.style
.left
= '200px';
32 box
.style
.backgroundColor
= 'red';
33 box
.style
.height
= '80px';
36 runTransitionTest(expectedEndEvents
, setupTest
);
41 <p>Initiating a
500ms transition on the left, background-color, width and height properties of box1.
</p>
44 <div id=
"box1" class=
"box"></div>
47 <div id=
"result"></div>