tor-browser

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

use-template.html (758B)


      1 <!doctype html>
      2 <meta charset=utf-8>
      3 <title>CSS Test: Use element after cloning</title>
      4 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
      5 <link rel="help" href="https://svgwg.org/svg2-draft/struct.html#UseElement">
      6 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1866911">
      7 <link rel="match" href="/svg/linking/reftests/use-template-ref.html">
      8 <template>
      9  <svg width="100" height="100">
     10    <use href="#rect"></use>
     11  </svg>
     12 </template>
     13 <svg width="0" height="0" style="position: absolute">
     14  <symbol id="rect">
     15    <rect width="100" height="100" fill="green" x="0" y="0"></rect>
     16  </symbol>
     17 </svg>
     18 <script>
     19  document.body.appendChild(document.querySelector("template").content.cloneNode(true));
     20 </script>