tor-browser

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

keyframes-remove-documentElement-crash.html (728B)


      1 <!doctype html>
      2 <html class="test-wait">
      3 <title>CSS Animations Test: Chrome crash when removing documentElement and @keyframes stylesheet</title>
      4 <link rel="help" href="https://crbug.com/999522">
      5 <style>
      6  @keyframes anim {
      7    from { color: pink }
      8    to { color: purple }
      9  }
     10  div {
     11    animation: notfound 1s;
     12  }
     13 </style>
     14 <div></div>
     15 <script>
     16 window.addEventListener('load', () => {
     17  document.body.offsetTop;
     18  document.querySelector("style").remove();
     19  // We need the root later to remove the test-wait class.
     20  const root = document.documentElement;
     21  document.documentElement.remove();
     22 
     23  // rAF to make sure that style runs.
     24  requestAnimationFrame(() => {
     25    root.classList.remove('test-wait');
     26  });
     27 });
     28 </script>