tor-browser

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

use-nested-symbol-001.html (852B)


      1 <!doctype html>
      2 <meta charset=utf-8>
      3 <title>CSS Test: symbol doesn't improperly render in svg use shadow tree</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=1547619">
      7 <link rel="match" href="/svg/linking/reftests/use-descendant-combinator-ref.html">
      8 <p>
      9  You should see a green square, and no red.
     10 </p>
     11 <svg
     12  version="1.1"
     13  xmlns="http://www.w3.org/2000/svg"
     14  xmlns:xlink="http://www.w3.org/1999/xlink">
     15  <defs>
     16    <symbol id="square">
     17      <rect width="100" height="100"/>
     18      <symbol>
     19        <rect width="100" height="100" fill="red" />
     20      </symbol>
     21    </symbol>
     22  </defs>
     23  <g id="test">
     24    <use xlink:href="#square" fill="green" />
     25  </g>
     26 </svg>