4 <script src=
"resources/link-highlight-helper.js"></script>
5 <link rel=
"stylesheet" type=
"text/css" href=
"resources/link-highlight-style.css">
7 <body onload=
"runTest();">
8 <div id=
"targetDiv" style=
"transform: translateZ(0); position: relative; left: 10px; top: 10px"></div>
9 <div style=
"position: relative; left: 10px; top: 40px; width: 200px; height: 100px; overflow-y: scroll; overflow-x: scroll;">
10 <a href=
"">Link
1</a><br>
11 <a href=
"">Link
2</a><br>
12 <a href=
"">Link
3</a><br>
13 <a href=
"" class=
"activeLink" id=
"targetLink">Target Link.
</a><br>
14 <a href=
"">Link
4</a><br>
15 <a href=
"">Link
5</a><br>
17 <div style=
"position: relative; left: 10px; top: 80px">
18 This test is successful if
"Target Link" above is covered in a green rectangle with square corners.
22 var targetLink
= document
.getElementById('targetLink');
23 createCompositedHighlight(targetLink
);
25 if (window
.testRunner
)
26 testRunner
.dumpAsTextWithPixelResults();