tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

will-change-transform-huge-offset-scrolled.html (655B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <link rel="help" href="https://drafts.csswg.org/css-will-change/#will-change">
      4 <link rel="match" href="will-change-transform-huge-offset-scrolled-ref.html">
      5 <div style="width: 20px; height: 20px; margin-top: 10000px; background: green; will-change: transform"></div>
      6 <script>
      7 // Incrementally scroll to the bottom.
      8 var lastScrollY = 0;
      9 function scroll() {
     10  window.scrollBy(0, 200);
     11  if (window.scrollY > lastScrollY) {
     12    lastScrollY = window.scrollY;
     13    requestAnimationFrame(scroll);
     14  } else {
     15    document.documentElement.classList.remove('reftest-wait');
     16  }
     17 }
     18 requestAnimationFrame(scroll);
     19 </script>