chromium/third_party/blink/web_tests/compositing/gestures/gesture-tapHighlight-img-transformed.html

<!DOCTYPE html>
<html>
<head>
<script src="resources/link-highlight-helper.js"></script>
<link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css">
</head>
<body onload="runTest();" style="overflow: hidden">
  <div style="will-change: transform; transform: translateY(100px) translateX(300px);">
    <a href="" class="opaqueHighlight">
      <img width="320" height="240" id="targetLink" style="vertical-align: bottom" src="resources/dice.png">
    </a>
</div>
<script>
function runTest() {
    useMockHighlight();
    var clientRect = document.getElementById('targetLink').getBoundingClientRect();
    x = (clientRect.left + clientRect.right) / 2;
    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.");
        debug("This test is successful if the image below is covered in a green rectangle.");
    }
}
</script>
</script>
</body>
</html>