| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <style type="text/css" media="screen"> | 5 <style type="text/css" media="screen"> |
| 6 .box { | 6 .box { |
| 7 height: 100px; | 7 height: 100px; |
| 8 width: 100px; | 8 width: 100px; |
| 9 margin: 20px; | 9 margin: 20px; |
| 10 background-color: blue; | 10 background-color: blue; |
| 11 -webkit-transform: translate3d(0, 0, 0); | 11 transform: translate3d(0, 0, 0); |
| 12 } | 12 } |
| 13 | 13 |
| 14 #movers.moved > .box { | 14 #movers.moved > .box { |
| 15 -webkit-animation: move 1s 1s linear; /* Note 1 sec delay */ | 15 -webkit-animation: move 1s 1s linear; /* Note 1 sec delay */ |
| 16 } | 16 } |
| 17 | 17 |
| 18 /* Test that we fetch the current style, not the one snapshotted when th
e animation started */ | 18 /* Test that we fetch the current style, not the one snapshotted when th
e animation started */ |
| 19 #movers.moved > #changedbox { | 19 #movers.moved > #changedbox { |
| 20 -webkit-transform: translate3d(50px, 0, 0); | 20 transform: translate3d(50px, 0, 0); |
| 21 } | 21 } |
| 22 | 22 |
| 23 /* Test that fill-mode: backwards works */ | 23 /* Test that fill-mode: backwards works */ |
| 24 #movers.moved > #filledbox { | 24 #movers.moved > #filledbox { |
| 25 -webkit-animation: move 1s 1s linear backwards; | 25 -webkit-animation: move 1s 1s linear backwards; |
| 26 } | 26 } |
| 27 | 27 |
| 28 @-webkit-keyframes move { | 28 @-webkit-keyframes move { |
| 29 from { -webkit-transform: translateX(100px); } | 29 from { transform: translateX(100px); } |
| 30 to { -webkit-transform: translateX(400px); } | 30 to { transform: translateX(400px); } |
| 31 } | 31 } |
| 32 </style> | 32 </style> |
| 33 <script type="text/javascript" charset="utf-8"> | 33 <script type="text/javascript" charset="utf-8"> |
| 34 if (window.testRunner) { | 34 if (window.testRunner) { |
| 35 testRunner.dumpAsText(); | 35 testRunner.dumpAsText(); |
| 36 testRunner.waitUntilDone(); | 36 testRunner.waitUntilDone(); |
| 37 } | 37 } |
| 38 | 38 |
| 39 var results = []; | 39 var results = []; |
| 40 function check(message, expected, actual) { | 40 function check(message, expected, actual) { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 62 <p>Test computed style during the delay phase of an accelerated animation.</
p> | 62 <p>Test computed style during the delay phase of an accelerated animation.</
p> |
| 63 <div id="movers"> | 63 <div id="movers"> |
| 64 <div id="testbox" class="box"></div> | 64 <div id="testbox" class="box"></div> |
| 65 <div id="changedbox" class="box"></div> | 65 <div id="changedbox" class="box"></div> |
| 66 <div id="filledbox" class="box"></div> | 66 <div id="filledbox" class="box"></div> |
| 67 </div> | 67 </div> |
| 68 <div id="result"> | 68 <div id="result"> |
| 69 </div> | 69 </div> |
| 70 </body> | 70 </body> |
| 71 </html> | 71 </html> |
| OLD | NEW |