blob: 214b91032106adf333d85aef41e520cd46aae8da [file] [log] [blame]
<!DOCTYPE html> <!-- webkit-test-runner [ AsyncOverflowScrollingEnabled=true ] -->
<html>
<head>
<style>
.flex {
display: flex;
width: 500px;
border: 1px solid black;
}
.clipped {
overflow: hidden;
width: 100%;
}
.relative {
position: relative;
}
.scroller {
overflow-y: scroll;
width: 100%;
height: 500px;
}
.contents {
height: 3000px;
width: 100%;
}
.handler {
background-color: silver;
margin: 510px 20px;
width: 100px;
height: 100px;
}
</style>
<script src="../../../../resources/ui-helper.js"></script>
<script>
if (window.testRunner)
testRunner.dumpAsText();
window.addEventListener('load', () => {
if (window.internals)
results.innerText = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_EVENT_REGION);
}, false);
</script>
</head>
<body>
<div class="flex">
<div class="clipped">
<div class="relative">
<div class="scroller">
<div class="contents">&nbsp;
<div class="handler" onmousewheel="(void)0"></div>
</div>
</div>
</div>
</div>
</div>
<pre id="results"></pre>
</body>
</html>