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); position: relative; left: 10; top: 40">
9 <span class=
"fauxHighlightSquare" href=
"" id=
"targetLink">Target
<b id=
"nestedText">Nested
</b> Link.
</span>
11 <div style=
"position: relative; left: 10; top: 70">
12 This test is successful if
"Target Nested Link" above is covered in a green rectangle with square corners.
16 var clientRect
= document
.getElementById('nestedText').getBoundingClientRect();
17 x
= (clientRect
.left
+ clientRect
.right
) / 2;
18 y
= (clientRect
.top
+ clientRect
.bottom
) / 2;
19 if (window
.testRunner
) {
20 testRunner
.dumpAsTextWithPixelResults();
21 testRunner
.waitUntilDone();
24 if (window
.eventSender
) {
25 eventSender
.gestureShowPress(x
, y
);
26 window
.setTimeout(function() { window
.testRunner
.notifyDone(); }, 0);
28 debug("This test requires DumpRenderTree.");