Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / input-appearance-elementFromPoint.html
blob9b13dce58e0e25bbccb80ea9d7375e5e697c875e
1 <html>
2 <head>
3 <script>
4 function showElement(x, y) {
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 var result = document.getElementById('res');
9 var myElement = document.elementFromPoint(x, y);
10 if (myElement == document.getElementById('tf'))
11 result.innerHTML = "Test Passed";
13 </script>
14 </head>
15 <body onload="showElement(15, 30)">
16 This tests that elementFromPoint will get the input element.
17 <input id="tf" style="-khtml-appearance: textfield; position: absolute; top: 25; left: 10;"></input>
18 <div id="res" style="position: absolute; top: 50; left: 10;">Test Failed</div>
19 </body>
20 </html>