3 if (window
.testRunner
) {
4 testRunner
.dumpAsText();
5 testRunner
.waitUntilDone();
8 function touchElement(evt
) {
9 getComputedStyle(evt
.srcElement
.firstElementChild
)['-webkit-animation-duration'];
10 evt
.srcElement
.firstElementChild
.style
.display
= 'block';
13 document
.getElementById("results").innerHTML
= "PASS: Adding animation events in the handler did not crash.";
14 if (window
.testRunner
)
15 testRunner
.notifyDone();
19 window
.onload = function() {
21 var padding
= document
.getElementsByClassName("padding");
22 for (var i
= 0; i
< padding
.length
; i
++)
23 padding
[i
].addEventListener('webkitAnimationIteration', touchElement
, false, false);
27 @-webkit-keyframes keyframes {
32 -webkit-animation-name: keyframes;
36 -webkit-animation-name: keyframes;
37 -webkit-animation-iteration-count: infinite;
38 -webkit-animation-duration:
0.001s;