1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24

content / test / data / accessibility / html / offscreen-scroll.html [blame]

<!--
@BLINK-ALLOW:scrollY=*
@BLINK-ALLOW:offscreen
@WAIT-FOR:Scrolled Button
-->

<html>
<head>
  <script>
    window.onload = function(unused) {
      setTimeout(function() {
        window.scrollTo(0, 640);
        document.getElementById('second').setAttribute('aria-label','Scrolled Button');
      }, 100);
    };
  </script>
</head>
<body>
  <button>Onscreen before scroll</button>
  <div style="height:650px"></div>
  <button id="second">Offscreen before scroll</button>
  <div style="height:650px"></div>
</body>
</html>