| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta name=viewport content="width=device-width"> | 4 <meta name=viewport content="width=device-width"> |
| 5 <style> | 5 <style> |
| 6 .scrollable { | 6 .scrollable { |
| 7 overflow: scroll; | 7 overflow: scroll; |
| 8 -webkit-overflow-scrolling: touch; | 8 -webkit-overflow-scrolling: touch; |
| 9 width: 300px; | 9 width: 300px; |
| 10 height: 300px; | 10 height: 300px; |
| 11 } | 11 } |
| 12 .container { | 12 .container { |
| 13 overflow: hidden; | 13 overflow: hidden; |
| 14 } | 14 } |
| 15 .indicator { | 15 .indicator { |
| 16 position: relative; | 16 position: relative; |
| 17 top: 100px; | 17 top: 100px; |
| 18 background-color: red; | 18 background-color: red; |
| 19 } | 19 } |
| 20 .box { | 20 .box { |
| 21 width: 100px; | 21 width: 100px; |
| 22 height: 100px; | 22 height: 100px; |
| 23 } | 23 } |
| 24 </style> | 24 </style> |
| 25 <script> |
| 26 if (window.internals) |
| 27 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnable
d(true); |
| 28 </script> |
| 25 </head> | 29 </head> |
| 26 | 30 |
| 27 <body> | 31 <body> |
| 28 <!-- Expect no red (a blank page) --> | 32 <!-- Expect no red (a blank page) --> |
| 29 <div class="scrollable"> | 33 <div class="scrollable"> |
| 30 <div class="container box"> | 34 <div class="container box"> |
| 31 <div class="indicator box"></div> | 35 <div class="indicator box"></div> |
| 32 </div> | 36 </div> |
| 33 </div> | 37 </div> |
| 34 </body> | 38 </body> |
| 35 | 39 |
| 36 </html> | 40 </html> |
| OLD | NEW |