blob: a97bc91708356690b2407c3477c804a7829d9acc [file] [log] [blame]
<!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>