4 <script src="../../resources/js-test.js"></script>
5 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css">
7 <body onload="runTest();">
8 <div style="transform: translateZ(0); width=1600px; height: 1000px">
9 <div style="position: relative; left: 100; top: 50;">
10 <a href="">Link 1</a></br>
11 <a href="">Link 2</a></br>
12 <a href="">Link 3</a></br>
13 <a class="fauxHighlight" href="" id="targetLink">Target Link</a>
15 <div style="position: relative; left: 100; top: 150; width: 700;">
16 This test is successful if "Target Link" above is covered in a green rectangle with square corners,
17 and the window is partially scrolled in both directions.
20 <div style="width: 1000px; height: 10px"></div>
23 var clientRect = document.getElementById('targetLink').getBoundingClientRect();
24 x = (clientRect.left + clientRect.right) / 2;
25 y = (clientRect.top + clientRect.bottom) / 2;
26 if (window.testRunner) {
27 testRunner.dumpAsTextWithPixelResults();
28 testRunner.waitUntilDone();
31 if (window.eventSender) {
32 //window.scrollTo(50, 30)
33 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
35 debug("This test requires DumpRenderTree.");