| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 html, body { | 5 html, body { |
| 6 margin: 0; | 6 margin: 0; |
| 7 padding: 0; | 7 padding: 0; |
| 8 } | 8 } |
| 9 .container { | 9 .container { |
| 10 width: 100px; | 10 width: 100px; |
| 11 height: 100px; | 11 height: 100px; |
| 12 overflow: auto; | 12 overflow: auto; |
| 13 background-color: lime; | 13 background-color: lime; |
| 14 } | 14 } |
| 15 .box { | 15 .box { |
| 16 width: 500px; | 16 width: 500px; |
| 17 height: 500px; | 17 height: 500px; |
| 18 } | 18 } |
| 19 </style> | 19 </style> |
| 20 <script> | 20 <script> |
| 21 if (window.internals) { | 21 if (window.internals) { |
| 22 testRunner.dumpAsTextWithPixelResults(); | 22 testRunner.dumpAsTextWithPixelResults(); |
| 23 internals.settings.setOverlayScrollbarsEnabled(true); | 23 internals.settings.setHideScrollbars(true); |
| 24 internals.settings.setMockScrollbarsEnabled(true); | |
| 25 internals.runtimeFlags.hideScrollbarsEnabled = true; | |
| 26 } | 24 } |
| 27 </script> | 25 </script> |
| 28 </head> | 26 </head> |
| 29 <body> | 27 <body> |
| 30 <p>You should see 4 green boxes that do not show scrollbars. | 28 <p>You should see 4 green boxes that do not show scrollbars. |
| 31 The first two boxes would show overlay scrollbars if they weren't | 29 They would show scrollbars if they weren't hidden (2nd and 4th with scrollbars o
n the left).</p> |
| 32 hidden (second one with a scrollbar on the left).</p> | |
| 33 | 30 |
| 34 <div class="container"><div class="box"></div></div> | 31 <div class="container"><div class="box"></div></div> |
| 35 <div dir="rtl" class="container"><div class="box"></div></div> | 32 <div dir="rtl" class="container"><div class="box"></div></div> |
| 36 | 33 |
| 37 <div class="container" style="overflow: scroll"></div> | 34 <div class="container" style="overflow: scroll"></div> |
| 38 <div dir="rtl" class="container" style="overflow: scroll"></div> | 35 <div dir="rtl" class="container" style="overflow: scroll"></div> |
| 39 </body> | 36 </body> |
| 40 </html> | 37 </html> |
| OLD | NEW |