chromium/third_party/blink/web_tests/compositing/gestures/gesture-tapHighlight-on-promoted-overflow-div-scrolled-expected.html

<!DOCTYPE html>
<html>
  <head>
    <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css">
    <script src="resources/link-highlight-helper.js"></script>
    <script>
      if (window.internals)
        internals.settings.setPreferCompositingToLCDTextEnabled(true);
      function runTest() {
        var targetDiv = document.getElementById('targetDiv');
        targetDiv.scrollTop += 20;
        createCompositedHighlight(document.getElementById('targetLink'));
      }
    </script>
  </head>
  <body onload="runTest();">
    <div style="will-change: transform; position: relative; left: 10px; top: 10px"></div>
    <div id="targetDiv" style="position: relative; left: 10px; top: 40px; width: 200px; height: 100px; overflow-y: scroll; overflow-x: scroll;">
      <a href="">AAAAAA</a><br>
      <a href="">AAAAAA</a><br>
      <a href="">AAAAAA</a><br>
      <a href="" class="activeLink" id="targetLink">Target Link.</a><br>
      <a href="">AAAAAA</a><br>
      <a href="">AAAAAA</a><br>
    </div>
    <div style="position: relative; left: 10px; top: 80px">
      This test is successful if "Target Link" above is covered in a green
      rectangle with square corners and the list is partially scrolled.
    </div>
    <div id="result"></div>
  </body>
</html>