| animation-duration: 0.2s; |
| animation-iteration-count: infinite; |
| animation-timing-function: linear; |
| animation-delay: -999999s; |
| testRunner.waitUntilDone(); |
| document.getElementById('result').innerHTML += `${msg}<br>`; |
| function iterated(event) { |
| output("PASS: Saw iteration event. The animation did start."); |
| if (event.elapsedTime > 1000) |
| output("PASS: Elapsed time is large. The animation thinks it started a long time ago."); |
| output("FAIL: Elapsed time wasn't big enough."); |
| window.addEventListener("animationiteration", iterated, { once: true }); |