| testRunner.waitUntilDone(); |
| function animationEnded() { |
| var result = document.getElementById("result"); |
| var square = document.getElementById('square'); |
| var opacity = document.defaultView.getComputedStyle(square, null).getPropertyValue('opacity'); |
| result.innerHTML = "PASS - Test working"; |
| result.innerHTML = "FAIL - A opacity value must be 0.5"; |
| -webkit-animation-name: pop; |
| -webkit-animation-duration: 1s; |
| -webkit-animation-fill-mode: forwards; |
| 0% { -webkit-transform: scale(0.05); opacity: 0; } |
| 33% { -webkit-transform: scale(1.00); opacity: 1; } |
| 66% { -webkit-transform: scale(1.66); opacity: 1; } |
| 100% { -webkit-transform: scale(0.95); opacity: 0.5; } |
| <div id="square" onwebkitanimationend="animationEnded();"></div> |