tor-browser

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

change-animation-name-to-none-in-rule.html (532B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <style>
      4 #target {
      5  animation: red 100s;
      6 }
      7 @keyframes red {
      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 id="target"></div>
     18 <script>
     19 document.addEventListener('MozReftestInvalidate', () => {
     20  requestAnimationFrame(() => {
     21    document.styleSheets[0].cssRules[0].style.animationName = 'none';
     22    document.documentElement.classList.remove('reftest-wait');
     23  });
     24 }, false);
     25 </script>