summaryrefslogtreecommitdiff
path: root/test/svg/use.svg
blob: 5336f0122af196ae3ddae06fdce69248a2d7d77c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 200 100" width="200" height="100">
  <!-- Symbols and uses, with style inherited from the use element. -->
  <defs>
    <symbol id="leaf"><path d="M0 0 C20 -20 40 -20 50 0 C40 20 20 20 0 0Z"/></symbol>
    <circle id="dot" r="8"/>
  </defs>
  <use xlink:href="#leaf" x="10" y="30" fill="#83c167"/>
  <use href="#leaf" x="70" y="30" fill="#5cd0b3" transform="rotate(20 95 30)"/>
  <g fill="#fc6255"><use href="#dot" x="150" y="30"/><use href="#dot" x="175" y="30" fill="#f7d96f"/></g>
  <g color="#58c4dd"><rect x="20" y="60" width="160" height="25" fill="currentColor"/></g>
</svg>