4 <script src="../../resources/js-test.js"></script>
6 <body onload="runTest();">
7 <div style="position: absolute; left: 40px; top: 40px; transform: rotate(22.5deg)">
8 <a href="" id="link1">Link 1</a><br>
9 <a href="" id="targetLink" style="-webkit-tap-highlight-color: rgba(0, 255, 0, 0.5);">Target Link.</a><br>
10 <a href="" id="link2">Link 2</a>
13 <div style="position: absolute; left: 10px; top: 110px; transform: translateZ(0);">
14 This test is successful if "Target Link" above is covered in a green rectangle with rounded corners.
18 var clientRect = document.getElementById('targetLink').getBoundingClientRect();
19 x = (clientRect.left + clientRect.right) / 2;
20 y = (clientRect.top + clientRect.bottom) / 2;
21 if (window.testRunner) {
22 testRunner.dumpAsTextWithPixelResults();
23 testRunner.waitUntilDone();
26 if (window.eventSender) {
27 eventSender.gestureShowPress(x, y);
28 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
30 debug("This test requires DumpRenderTree.");