<!DOCTYPE html>
<script src="resources/link-highlight-helper.js"></script>
<style>
input {
margin:20px;
-webkit-appearance: none;
}
</style>
<body onload="runTest();">
<div style="will-change: transform; position: relative; left: 10px; top: 40px">
<form>
<div>
<input id="target" value="Target Input Text">
</div>
</form>
</div>
<div style="position: relative; left: 10px; top: 70px">
This test is successful if there are no green rectangles.
</div>
<script>
function runTest() {
// Needs to call eventSender.gestureShowPress() to get the same visual
var clientRect = target.getBoundingClientRect();
var x = (clientRect.left + clientRect.right) / 2;
var y = (clientRect.top + clientRect.bottom) / 2;
if (window.eventSender) {
eventSender.gestureShowPress(x, y);
} else {
debug("This test requires DumpRenderTree.");
}
}
</script>
</body>