blob: 9b13dce58e0e25bbccb80ea9d7375e5e697c875e [file] [log] [blame]
<html>
<head>
<script>
function showElement(x, y) {
if (window.testRunner)
testRunner.dumpAsText();
var result = document.getElementById('res');
var myElement = document.elementFromPoint(x, y);
if (myElement == document.getElementById('tf'))
result.innerHTML = "Test Passed";
}
</script>
</head>
<body onload="showElement(15, 30)">
This tests that elementFromPoint will get the input element.
<input id="tf" style="-khtml-appearance: textfield; position: absolute; top: 25; left: 10;"></input>
<div id="res" style="position: absolute; top: 50; left: 10;">Test Failed</div>
</body>
</html>