blob: 90f258b2114f9a0539553e02be3ca01add086a85 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../../../fast/js/resources/js-test-pre.js"></script>
</head>
<body onload="runTest();" style="width:2000px;height:2000px;margin:0px;padding:100px">
<button style="width:50px;height:50px;">B1</button><button style="width:50px;height:50px;">B2</button><button style="width:50px;height:50px;">B3</button>
<div>This test is successful if elementFromPoint returns the correct element.</div>
<div id="result"></div>
<script>
function runTest() {
if (window.internals)
window.internals.settings.setPageScaleFactor(2, 0, 0);
window.scrollTo(100,100);
if (window.testRunner)
testRunner.dumpAsText();
document.getElementById("result").innerText = document.elementFromPoint(125, 25).innerText;
}
</script>
</script>
</body>
</html>