tor-browser

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

end-attribute-change-end-time.html (681B)


      1 <!DOCTYPE html>
      2 <title>Mutation of the 'end' attribute changes current interval end</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"/>
      8  </rect>
      9 </svg>
     10 <script>
     11  async_test(t => {
     12    onload = t.step_func(() => {
     13      t.step_timeout(() => {
     14        let set = document.querySelector('set');
     15        set.setAttribute('end', '0s');
     16        requestAnimationFrame(t.step_func_done(() => {
     17          assert_equals(getComputedStyle(set.targetElement, null).fill, 'rgb(0, 128, 0)');
     18        }));
     19      });
     20    });
     21  });
     22 </script>