tor-browser

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

no-style-sharing-with-animations.html (582B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <style>
      4 .animation {
      5  animation: anim 100s forwards;
      6 }
      7 @keyframes anim {
      8  0% { background-color: red; }
      9  100% { background-color: red; }
     10 }
     11 div {
     12  background-color: green;
     13  width: 100px;
     14  height: 100px;
     15 }
     16 </style>
     17 <div class="animation"></div>
     18 <div class="animation"></div>
     19 <script>
     20 document.addEventListener('MozReftestInvalidate', () => {
     21  requestAnimationFrame(() => {
     22    document.styleSheets[0].cssRules[0].style.animationName = 'none';
     23    document.documentElement.classList.remove('reftest-wait');
     24  });
     25 }, false);
     26 </script>