4 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css">
6 <body onload="runTest();">
7 <div id="targetDiv" style="-webkit-transform: translateZ(0); position: relative; left: 10px; top: 10px"></div>
8 <div style="position: relative; left: 10px; top: 40px; width: 300px; height: 150px; overflow-y: scroll; overflow-x: scroll;">
9 <div style="position: relative; left: 10px; top: i10px; width: 200px; height: 100px; overflow-y: scroll; overflow-x: scroll;">
10 <a href="">Link 1</a><br>
11 <a href="">Link 2</a><br>
12 <a href="">Link 3</a><br>
13 <a href="" class="opaqueHighlight" id="targetLink">Target Link.</a><br>
14 <a href="">Link 4</a><br>
15 <a href="">Link 5</a><br>
17 <a href="">Link 6</a><br>
18 <a href="">Link 7</a><br>
19 <a href="">Link 8</a><br>
20 <a href="">Link 9</a><br>
22 <div style="position: relative; left: 10px; top: 80px">
23 This test is successful if "Target Link" above is covered in a green rectangle with rounded corners.
27 var clientRect = document.getElementById('targetLink').getBoundingClientRect();
28 x = (clientRect.left + clientRect.right) / 2;
29 y = (clientRect.top + clientRect.bottom) / 2;
30 if (window.testRunner) {
31 testRunner.dumpAsTextWithPixelResults();
32 testRunner.waitUntilDone();
35 if (window.eventSender) {
36 eventSender.gestureShowPress(x, y);
37 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
39 debug("This test requires DumpRenderTree.");