| <!DOCTYPE html> <!-- webkit-test-runner [ AsyncOverflowScrollingEnabled=true ] --> |
| <html> |
| <head> |
| <title>Layer tree dump RTL overflow with composited scrollbars</title> |
| <style> |
| #scroller { |
| overflow-y: scroll; |
| height: 300px; |
| width: 300px; |
| margin: 20px; |
| border: 13px solid black; |
| box-shadow: 0 0 7px black; |
| padding: 8px; |
| } |
| |
| .content { |
| height: 200%; |
| width: 200%; |
| } |
| </style> |
| <script> |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| |
| if (window.internals) |
| internals.setUsesOverlayScrollbars(true) |
| |
| window.addEventListener('load', () => { |
| if (window.internals) |
| document.getElementById('layers').innerText = window.internals.layerTreeAsText(document); |
| }, false); |
| </script> |
| </head> |
| <body> |
| <div id="scroller" dir="rtl"> |
| <div class="content"></div> |
| </div> |
| <pre id="layers"></pre> |
| </body> |
| </html> |
| |