| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 This test verifies that content is visible when the viewport is larger than the
initial containing block. | 3 This test verifies that content is visible when the viewport is larger than the
initial containing block. |
| 4 --> | 4 --> |
| 5 <script> | 5 <script> |
| 6 internals.settings.setViewportEnabled(true); | 6 internals.settings.setViewportEnabled(true); |
| 7 internals.settings.setViewportMetaEnabled(true); | 7 internals.settings.setViewportMetaEnabled(true); |
| 8 </script> | 8 </script> |
| 9 <script src="../../resources/run-after-layout-and-paint.js"></script> | 9 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 10 <style> | 10 <style> |
| 11 ::-webkit-scrollbar { | |
| 12 width: 0px; | |
| 13 height: 0px; | |
| 14 } | |
| 15 body { | 11 body { |
| 16 width: 1000px; | 12 width: 1000px; |
| 17 height: 1000px; | 13 height: 1000px; |
| 18 margin: 0; | 14 margin: 0; |
| 19 } | 15 } |
| 20 .box { | 16 .box { |
| 21 position: absolute; | 17 position: absolute; |
| 22 left: 800px; | 18 left: 800px; |
| 23 top: 600px; | 19 top: 600px; |
| 24 width: 100px; | 20 width: 100px; |
| 25 height: 100px; | 21 height: 100px; |
| 26 background-color: #8f8; | 22 background-color: #8f8; |
| 27 } | 23 } |
| 28 </style> | 24 </style> |
| 29 <meta name="viewport" content="width=800, minimum-scale=0.8, initial-scale=1, ma
ximum-scale=1.25"> | 25 <meta name="viewport" content="width=800, minimum-scale=0.8, initial-scale=1, ma
ximum-scale=1.25"> |
| 30 <div class="box"></div> | 26 <div class="box"></div> |
| 31 <script> | 27 <script> |
| 32 if (window.testRunner) { | 28 if (window.testRunner) { |
| 33 testRunner.dumpAsTextWithPixelResults(); | 29 testRunner.dumpAsTextWithPixelResults(); |
| 34 testRunner.waitUntilDone(); | 30 testRunner.waitUntilDone(); |
| 35 } | 31 } |
| 36 runAfterLayoutAndPaint(function() { | 32 runAfterLayoutAndPaint(function() { |
| 37 internals.setPageScaleFactor(0.8); | 33 internals.setPageScaleFactor(0.8); |
| 38 if (window.testRunner) | 34 if (window.testRunner) |
| 39 testRunner.notifyDone(); | 35 testRunner.notifyDone(); |
| 40 }); | 36 }); |
| 41 </script> | 37 </script> |
| OLD | NEW |