tor-browser

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

pruning-first-interval.html (1026B)


      1 <!DOCTYPE html>
      2 <title>Timed element not active after first interval active duration changes to unresolved</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <svg>
      6  <rect width="100" height="100" fill="green">
      7    <set attributeName="fill" to="red" fill="freeze"
      8         begin="click" end="click" dur="100ms" repeatCount="indefinite"/>
      9  </rect>
     10 </svg>
     11 <script>
     12  async_test(function(t) {
     13    let set = document.querySelector('set');
     14    window.onload = t.step_func(function() {
     15      t.step_timeout(function() {
     16        set.setAttribute('begin', '-100ms');
     17        set.setAttribute('begin', 'click');
     18        set.parentNode.appendChild(set);
     19        set.setAttribute('end', '-100ms');
     20        set.setAttribute('end', 'click');
     21        window.requestAnimationFrame(t.step_func_done(function() {
     22          let target = set.targetElement;
     23          assert_equals(getComputedStyle(target).fill, 'rgb(0, 128, 0)');
     24        }));
     25      }, 0);
     26    });
     27  });
     28 </script>