blob: 241eb5845a9265527a544fcb9993d1f5bdbf35c1 [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);
internals.setHeaderHeight(23);
}
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>