4 <link rel=
"stylesheet" type=
"text/css" href=
"resources/link-highlight-style.css">
5 <script src=
"../../compositing/overflow/resources/automatically-opt-into-composited-scrolling.js"></script>
8 var targetDiv
= document
.getElementById('targetDiv');
9 targetDiv
.scrollTop
+= 20;
11 var highlight
= createCompositedHighlight(document
.getElementById('targetLink'));
13 if (window
.testRunner
) {
14 testRunner
.dumpAsTextWithPixelResults();
18 <script src=
"resources/link-highlight-helper.js"></script>
20 <body onload=
"runTest();">
21 <div style=
"transform: translateZ(0); position: relative; left: 10px; top: 10px"></div>
22 <div id=
"targetDiv" style=
"position: relative; left: 10px; top: 40px; width: 200px; height: 100px; overflow-y: scroll; overflow-x: scroll;">
23 <a href=
"">Link
1</a><br>
24 <a href=
"">Link
2</a><br>
25 <a href=
"">Link
3</a><br>
26 <a href=
"" class=
"activeLink" id=
"targetLink">Target Link.
</a><br>
27 <a href=
"">Link
4</a><br>
28 <a href=
"">Link
5</a><br>
30 <div style=
"position: relative; left: 10px; top: 80px">
31 This test is successful if
"Target Link" above is covered in a green
32 rectangle with square corners and the list is partially scrolled.
34 <div id=
"result"></div>