tor-browser

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

cyclic-syncbase-2.html (960B)


      1 <!DOCTYPE html>
      2 <title>Cyclic syncbase dependency with syncbase trigger</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <svg>
      6  <rect width="100" height="100" fill="blue">
      7    <animate attributeName="fill" from="yellow" to="blue" id="a"
      8             begin="c.end; b.begin" dur="10ms"/>
      9  </rect>
     10  <rect width="100" height="100" x="100" fill="blue">
     11    <animate attributeName="fill" from="yellow" to="blue" id="b"
     12             begin="c.end; a.begin" dur="10ms"/>
     13  </rect>
     14  <rect width="100" height="100" x="200" fill="blue">
     15    <animate attributeName="fill" from="yellow" to="blue" id="c"
     16             begin="0; 15ms" dur="10ms"/>
     17  </rect>
     18 </svg>
     19 <script>
     20  async_test(function(t) {
     21    let a = document.getElementById('a');
     22    a.begun = 0;
     23    a.addEventListener('beginEvent', t.step_func(function() {
     24      a.begun++;
     25      if (a.begun === 2)
     26        t.done();
     27    }));
     28  });
     29 </script>