tor-browser

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

legend-dynamic-update.html (507B)


      1 <!DOCTYPE html>
      2 <html class=reftest-wait>
      3 <title>legend and dynamic update</title>
      4 <link rel=fieldset-foo-ref.html>
      5 <p>There should be a normal fieldset below with the legend "Foo".</p>
      6 <fieldset>
      7  <legend>F</legend>
      8 </fieldset>
      9 <script>
     10  const legend = document.querySelector('legend');
     11  // force layout
     12  legend.offsetTop;
     13  requestAnimationFrame(() => {
     14    legend.textContent += "oo";
     15    requestAnimationFrame(() => {
     16      document.documentElement.removeAttribute('class');
     17    });
     18  });
     19 </script>