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 id=
"highlight" class=
"fauxHighlight" style=
"z-index: 1; position: absolute"></div>
9 <div class=
"opaqueHighlight" id=
"expectedHighlight" style=
"border-style: solid; cursor: pointer">
10 Click here to go
<a id=
"taptarget" href=
"#">there
</a>
15 var clientRect
= document
.getElementById("expectedHighlight").getBoundingClientRect();
16 var highlight
= document
.getElementById("highlight");
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";
23 if (window
.testRunner
)
24 testRunner
.dumpAsTextWithPixelResults();