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 style=
"transform: translateZ(0); position: relative; left: 10px; top: 10px"></div>
9 <div id=
"targetDiv" style=
"position: relative; left: 10px; top: 40px; width: 200px; height: 100px; overflow-y: scroll; overflow-x: scroll;">
10 <div id=
"divToForceCompositedLayer">
11 <a href=
"">Link
1</a><br>
12 <a href=
"">Link
2</a><br>
13 <a href=
"">Link
3</a><br>
14 <a href=
"" class=
"activeLink" id=
"targetLink">Target Link.
</a><br>
15 <a href=
"">Link
4</a><br>
16 <a href=
"">Link
5</a><br>
18 <div style=
"position: relative; left: 10px; top: 80px">
19 This test is successful if
"Target Link" above is covered in a green rectangle with square corners.
23 var targetDiv
= document
.getElementById('targetDiv');
24 targetDiv
.scrollTop
+= 20;
26 var targetLink
= document
.getElementById('targetLink');
27 createCompositedHighlight(targetLink
);
29 if (window
.testRunner
)
30 testRunner
.dumpAsTextWithPixelResults();