blob: 5ac7dea52c4fea429f340dc4d962d780a36d6ca8 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
.box {
height: 100px;
width: 100px;
margin: 10px 20px;
background-color: blue;
box-shadow: 0 0 10px black;
}
</style>
<script src="../../../resources/ui-helper.js"></script>
<script src="resources/wheel-handler-region-helper.js"></script>
<script>
if (window.internals)
internals.setTopContentInset(60);
function doTest()
{
window.setTimeout(async () => {
// Scroll to test the mapping from document to view coords.
document.scrollingElement.scrollTop = 195;
dumpRegionAndNotifyDone();
}, 0)
}
window.addEventListener('load', doTest);
</script>
</head>
<body>
<p>Wheel event rect:</p>
<div class="box" onmousewheel="(void)0"></div>
<pre id="output"></pre>
</body>
</html>