summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/text/input-appearance-elementFromPoint.html
blob: 9b13dce58e0e25bbccb80ea9d7375e5e697c875e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<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>