blob: 9157a6494ac7ea6b5cf3ddb5cf9992591714cb3a [file] [log] [blame]
<!DOCTYPE html> <!-- webkit-test-runner [ internal:AsyncOverflowScrollingEnabled=true ] -->
<html>
<head>
<style>
.container {
width: 300px;
height: 300px;
border: 2px solid gray;
margin: 20px;
padding: 10px;
overflow-y: hidden;
}
.scroller {
overflow-x: auto;
width: 100%;
height: 100%;
border: 2px solid black;
box-sizing: border-box;
}
.clipping {
overflow: hidden;
width: 200px;
border: 2px solid black;
margin: 50px 10px;
padding: 10px;
}
.relative {
position: relative;
padding: 10px;
border: 2px solid orange;
}
.spacer {
height: 300px;
}
</style>
<script>
if (window.testRunner)
testRunner.dumpAsText();
window.addEventListener('load', () => {
if (window.internals)
document.getElementById('layers').textContent = internals.layerTreeAsText(document);
}, false);
</script>
</head>
<body>
<div class="container">
<div class="scroller">
<div class="clipping">
<div class="relative">
Text
</div>
</div>
<div class="spacer"></div>
</div>
</div>
<pre id="layers"></pre>
</body>
</html>