tor-browser

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

use-element-attr-selector.html (706B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <title>SVG Test: Attribute change in template affects attribute selector matching in &lt;use&gt; element tree</title>
      4 <link rel="help" href="https://svgwg.org/svg2-draft/struct.html#UseElement">
      5 <link rel="match" href="use-element-selector-ref.html">
      6 <style>
      7  [attr] > #rect { fill: green; }
      8 </style>
      9 <svg>
     10  <use id="use_elm" xlink:href="#tmpl" />
     11  <defs>
     12    <g id="tmpl">
     13      <rect id="rect" width="100" height="100"></rect>
     14    </g>
     15  </defs>
     16 </svg>
     17 <script>
     18  requestAnimationFrame(() => {
     19    requestAnimationFrame(() => {
     20      tmpl.setAttribute("attr", "val");
     21      document.documentElement.classList.remove('reftest-wait');
     22    });
     23  });
     24 </script>