| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Animating transform on large tiled layer.</title> | 4 <title>Animating transform on large tiled layer.</title> |
| 5 <style type="text/css"> | 5 <style type="text/css"> |
| 6 #box { | 6 #box { |
| 7 -webkit-transition: -webkit-transform 1s step-end; | 7 -webkit-transition: -webkit-transform 1s step-end; |
| 8 display: block; | 8 display: block; |
| 9 width: 1000px; | 9 width: 1000px; |
| 10 height: 2000px; | 10 height: 2000px; |
| 11 background-color: green; | 11 background-color: green; |
| 12 } | 12 } |
| 13 | 13 |
| 14 #sandbox { | 14 #sandbox { |
| 15 height: 1000px; | 15 height: 1000px; |
| 16 width: 1000px; | 16 width: 1000px; |
| 17 background-color: red; | 17 background-color: red; |
| 18 overflow: hidden; | 18 overflow: hidden; |
| 19 } | 19 } |
| 20 | 20 |
| 21 .end { | 21 .end { |
| 22 -webkit-transform: translate3d(0, -1000px, 0); | 22 transform: translate3d(0, -1000px, 0); |
| 23 } | 23 } |
| 24 | 24 |
| 25 .start { | 25 .start { |
| 26 -webkit-transform: translate3d(0, 100%, 0); | 26 transform: translate3d(0, 100%, 0); |
| 27 } | 27 } |
| 28 </style> | 28 </style> |
| 29 <script type="text/javascript"> | 29 <script type="text/javascript"> |
| 30 function run() | 30 function run() |
| 31 { | 31 { |
| 32 if (window.testRunner) { | 32 if (window.testRunner) { |
| 33 testRunner.useUnfortunateSynchronousResizeMode(); | 33 testRunner.useUnfortunateSynchronousResizeMode(); |
| 34 testRunner.waitUntilDone(); | 34 testRunner.waitUntilDone(); |
| 35 window.setTimeout(notifyDone, 1200); | 35 window.setTimeout(notifyDone, 1200); |
| 36 } | 36 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 48 </head> | 48 </head> |
| 49 <body onload="run()"> | 49 <body onload="run()"> |
| 50 <div id=description> | 50 <div id=description> |
| 51 The test passes if the box below turns green. | 51 The test passes if the box below turns green. |
| 52 </div> | 52 </div> |
| 53 <div id=sandbox> | 53 <div id=sandbox> |
| 54 <div id="box" class="start"><font style="opacity:0">ABC</font></div> | 54 <div id="box" class="start"><font style="opacity:0">ABC</font></div> |
| 55 </div> | 55 </div> |
| 56 </body> | 56 </body> |
| 57 </html> | 57 </html> |
| OLD | NEW |