tor-browser

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

subpixel-scroll-crash.html (998B)


      1 <!DOCTYPE html>
      2 <html class="test-wait">
      3  <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
      4  <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1276319">
      5  <div style="columns:2; column-fill:auto; height:4000px;">
      6    <div style="margin-top:1000px; width:100px; height:100px; background:url(bilen.jpg) fixed;"></div>
      7    <!-- Attempt to get legacy layout, in order to trigger the bug: -->
      8    <div style="display:flex;"></div>
      9    <div style="display:grid;"></div>
     10    <div style="display:table;"></div>
     11  </div>
     12  <script>
     13    var offset = 1000;
     14    function scrollEverSoSlightly() {
     15      if (offset > 1003) {
     16        document.documentElement.classList.remove("test-wait");
     17        return;
     18      }
     19      window.scrollTo(0, offset);
     20      offset += 1/19;
     21      requestAnimationFrame(()=> {
     22        requestAnimationFrame(()=> {
     23          scrollEverSoSlightly();
     24        });
     25      });
     26    }
     27    scrollEverSoSlightly();
     28  </script>
     29 </html>