| <!DOCTYPE html> <!-- webkit-test-runner [ internal:AsyncOverflowScrollingEnabled=true ] --> |
| -webkit-overflow-scrolling: touch; |
| background-color: silver; |
| function testScrollability(element) |
| // This will cause scrolled elements will have a 'bounds origin' of y=50 in their layer. |
| var divs = document.querySelectorAll('body > div.overflow'); |
| for (var i = 0; i < divs.length; ++i) |
| testScrollability(divs[i]); |
| document.getElementById('results').innerText = window.internals.layerTreeAsText(document); |
| window.addEventListener('load', doTest, false); |
| <div class="overflow scroll"> |
| <div class="short contents"></div> |
| <div class="overflow scroll"> |
| <div class="tall contents"></div> |
| <div class="overflow auto"> |
| <div class="short contents"></div> |
| <div class="overflow auto"> |
| <div class="tall contents"></div> |
| <pre id="results">This test requires DRT.</pre> |