OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../../resources/js-test.js"></script> |
| 5 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.cs
s"> |
| 6 </head> |
| 7 <body onload="runTest();"> |
| 8 <div id="highlight" class="fauxHighlight" style="z-index: 1; position: absolut
e"></div> |
| 9 <div class="opaqueHighlight" id="expectedHighlight" style="border-style: solid
; cursor: pointer"> |
| 10 Click here to go <a id="taptarget" href="#">there</a> |
| 11 </div> |
| 12 |
| 13 <script> |
| 14 function runTest() { |
| 15 var clientRect = document.getElementById("expectedHighlight").getBoundingC
lientRect(); |
| 16 var highlight = document.getElementById("highlight"); |
| 17 |
| 18 highlight.style.left = clientRect.left + "px"; |
| 19 highlight.style.top = clientRect.top + "px"; |
| 20 highlight.style.width = clientRect.width + "px"; |
| 21 highlight.style.height = clientRect.height + "px"; |
| 22 |
| 23 if (window.testRunner) |
| 24 testRunner.dumpAsTextWithPixelResults(); |
| 25 } |
| 26 </script> |
| 27 </body> |
| 28 </html> |
OLD | NEW |