8 -webkit-transition: height
0.5s linear;
13 background-color: blue;
16 -webkit-transition: -webkit-transform
0.5s linear;
20 if (window
.testRunner
) {
21 testRunner
.dumpAsText();
22 testRunner
.waitUntilDone();
26 if (window
.testRunner
) {
27 testRunner
.notifyDone();
31 function startTest() {
32 var a
= document
.getElementById("a");
33 var b
= document
.getElementById("b");
34 a
.addEventListener("webkitTransitionEnd", endTest
, false);
36 // Trigger transitions.
37 a
.style
.height
= "0px";
38 b
.style
.webkitTransform
= "translateX(10px)";
41 document
.body
.offsetHeight
;
43 // Remove the transform transition by hiding its div.
44 b
.style
.display
= "none";
48 <body onload=
"startTest()">
49 <div id=
"a">FAIL
</div>