OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="resources/autosizingTest.js"></script> |
| 3 <style> |
| 4 @keyframes widthAnim { |
| 5 0% { width: 100px } |
| 6 50% { width: 800px } |
| 7 } |
| 8 |
| 9 #animated { |
| 10 width: 100px; |
| 11 font-size: 70px; |
| 12 animation-name: widthAnim; |
| 13 animation-duration: 0.1s; |
| 14 animation-timing-function: steps(2, start); |
| 15 } |
| 16 </style> |
| 17 <p>PASS if test doesn't assert or crash.</p> |
| 18 <div id="animated">xxxxxxxxxxxxxxxxxxxxxxxxxxxx</div> |
| 19 <script> |
| 20 if (window.testRunner) { |
| 21 testRunner.dumpAsText(); |
| 22 testRunner.waitUntilDone(); |
| 23 } |
| 24 |
| 25 setWindowSizeOverride(320, 480); |
| 26 |
| 27 addEventListener("animationend", function(){ |
| 28 if (window.testRunner) |
| 29 testRunner.notifyDone(); |
| 30 }); |
| 31 </script> |
OLD | NEW |