4 <script src=
"../../resources/js-test.js"></script>
5 <link rel=
"stylesheet" type=
"text/css" href=
"resources/link-highlight-style.css">
10 #outerDiv, #outerDiv div {
16 <body onload=
"runTest();">
17 <div id=
"highlight" class=
"fauxHighlight" style=
"z-index: 1; position: absolute"></div>
18 <div class=
"opaqueHighlight" id=
"outerDiv" style=
"cursor: pointer">
20 <div style=
"cursor: pointer">
21 <div id=
"innerDiv"></div>
28 var clientRect
= document
.getElementById("outerDiv").getBoundingClientRect();
29 var highlight
= document
.getElementById("highlight");
31 highlight
.style
.left
= clientRect
.left
+ "px";
32 highlight
.style
.top
= clientRect
.top
+ "px";
33 highlight
.style
.width
= clientRect
.width
+ "px";
34 highlight
.style
.height
= clientRect
.height
+ "px";
36 if (window
.testRunner
)
37 testRunner
.dumpAsTextWithPixelResults();