8 background-color: blue;
9 -webkit-transition-property: -webkit-transform;
10 -webkit-transition-duration:
0.2s;
14 if (window
.testRunner
) {
15 testRunner
.dumpAsText();
16 testRunner
.waitUntilDone();
20 function transitionEnded()
24 if (window
.GCController
)
25 GCController
.collect();
27 document
.getElementById('results').innerHTML
= 'Did not crash, so PASSED';
29 if (window
.testRunner
)
30 testRunner
.notifyDone();
36 var box1
= document
.getElementById('box1');
37 box1
.addEventListener('webkitTransitionEnd', function() {
38 box1
.parentNode
.removeChild(box1
);
41 box1
.style
.webkitTransform
= 'translate(100px, 0)';
43 var box2
= document
.getElementById('box2');
44 box2
.addEventListener('webkitTransitionEnd', function() {
45 box2
.style
.display
= 'none';
48 box2
.style
.webkitTransform
= 'translate(100px, 0)';
51 window
.addEventListener('load', startTest
, false);
56 <p>Tests element removal and hiding in webkitTransitionEnd event handler. Should not crash.
</p>
59 <div id=
"box1" class=
"box"></div>
60 <div id=
"box2" class=
"box"></div>
62 <div id=
"results"></div>