5 <style type="text/css" media="screen">
11 background-color: blue;
15 -webkit-animation: move 0.1s linear;
17 -webkit-transition: left 10s linear;
20 /* When the animation is done, the box should be running a transition from 100px to 200px */
21 .box.animating.moved {
25 @-webkit-keyframes move {
38 <script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
39 <script type="text/javascript" charset="utf-8">
41 if (window.layoutTestController)
42 layoutTestController.waitUntilDone();
44 const expectedValues = [
45 // [animation-name, time, element-id, property, expected-value, tolerance]
46 [null, 0.2, "test", "left", 100, 10],
49 function animationStarted()
51 document.getElementById('test').className = 'animating moved box';
56 document.getElementById('test').className = 'animating box';
57 runAnimationTest(expectedValues, animationStarted);
60 window.addEventListener('load', function() {
61 window.setTimeout(setupTest, 0);
67 <p>Once animation has finished, box should be running left transition from 100px to 200px.</p>
68 <div id="test" class="box"></div>
69 <div id="result"></div>