| animation: move 0.25s linear; |
| animation-duration: 0.2s; |
| testRunner.waitUntilDone(); |
| var box = document.getElementById('box'); |
| box.addEventListener('animationend', function() { |
| window.setTimeout(function() { |
| box.addEventListener('animationstart', function() { |
| document.getElementById('results').textContent = "FAIL: animation restarted after changing animation-duration" |
| // In the success case, wait a bit to make sure no animationstart event comes in. |
| window.setTimeout(function() { |
| box.classList.add('changed'); |
| box.classList.add('mover'); |
| window.addEventListener('load', doTest, false); |
| <div id="box" class="box"></div> |
| PASS: animation did not restart after changing animation-duration. |