3 <title>Transition End Events
</title>
4 <style type=
"text/css" media=
"screen">
11 background-color: blue;
12 -webkit-transition-property: width, left, background-color, height, top;
13 -webkit-transition-duration:
0.5s;
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],
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);
43 <p>Initiating a
500ms transition on the left, background-color, width and height properties of box1.
</p>
46 <div id=
"box1" class=
"box"></div>
49 <div id=
"result"></div>