chromium/third_party/blink/web_tests/compositing/gestures/gesture-tapHighlight-form-input-text.html

<!DOCTYPE html>
<script src="resources/link-highlight-helper.js"></script>
<style>
html {
    -webkit-tap-highlight-color: rgb(0, 255, 0);
}
.pointer {
    cursor:pointer;
}
input {
    margin:20px;
    -webkit-appearance: none;
}
</style>
<body onload="runTest();">
<div style="will-change: transform; position: relative; left: 10px; top: 40px">
    <form>
        <div class="pointer">
            <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() {
    useMockHighlight();

    var clientRect = target.getBoundingClientRect();
    var x = (clientRect.left + clientRect.right) / 2;
    var y = (clientRect.top + clientRect.bottom) / 2;
    if (window.testRunner)
        testRunner.waitUntilDone();

    if (window.eventSender) {
        eventSender.gestureShowPress(x, y);
        window.setTimeout(function() { testRunner.notifyDone(); }, 0);
    } else {
        debug("This test requires DumpRenderTree.");
    }
}
</script>
</body>