| -webkit-transition: opacity 200ms; |
| testRunner.waitUntilDone(); |
| var results = document.getElementById('results'); |
| results.innerHTML += s + '<br>'; |
| function testTransitions() |
| var numAnims = document.getAnimations().length; |
| log('No running transitions: PASS'); |
| log('Still ' + numAnims + ' transitions running: FAIL') |
| window.setTimeout(testTransitions, 50); |
| function startTransition() |
| var box = document.getElementById('box'); |
| box.className = 'animated'; |
| window.setTimeout(function() { |
| box.style.opacity = '0.5'; |
| window.setTimeout(removeStyle, 200); |
| window.addEventListener('load', startTransition, false); |