| <!DOCTYPE html><!-- webkit-test-runner [ enableCSSAnimationsAndCSSTransitionsBackedByWebAnimations=true ] --> |
| -webkit-transition-property: opacity; |
| -webkit-transition-timing-function: linear; |
| -webkit-transition-duration: 5s; |
| background-color: orange; |
| testRunner.waitUntilDone(); |
| var container = document.getElementById('first'); |
| container.style.opacity = 1; |
| // dump the tree in the middle of the transition |
| window.setTimeout(function() { |
| var firstElement = document.getElementById('first'); |
| const transition = firstElement.getAnimations()[0]; |
| transition.currentTime = 2500; |
| // FIXME: this should use runTransitionTest(). |
| window.addEventListener('load', runTest, false); |
| <div class="container" id="first"> |
| <div class="indicator"></div> |