tor-browser

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

use-symbol-rendered-001.html (850B)


      1 <!doctype html>
      2 <meta charset=utf-8>
      3 <title>CSS Test: symbol referenced in a use shadow tree should actually be a symbol</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#SymbolNotes">
      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 <style>
     12 rect {
     13  fill: red;
     14 }
     15 symbol rect {
     16  fill: green;
     17 }
     18 </style>
     19 <svg
     20  version="1.1"
     21  xmlns="http://www.w3.org/2000/svg"
     22  xmlns:xlink="http://www.w3.org/1999/xlink">
     23  <defs>
     24    <symbol id="square">
     25      <rect width="100" height="100"/>
     26    </symbol>
     27  </defs>
     28  <g id="test">
     29    <use xlink:href="#square" fill="green" />
     30  </g>
     31 </svg>