summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/viewBox-and-symbol-01.svg
blob: 5c8ebf7bc3ea2d04a8531e5243c88dfb748fa788 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<svg xmlns="http://www.w3.org/2000/svg">
  <defs>
    <symbol id="mySymbol" viewBox="0 0 20 20">
      <rect fill="lime" x="50%" height="20px" width="3%"/>
    </symbol>
  </defs>
  <rect width="100%" height="100%" fill="lime"/>
  <svg viewBox="0 0 20 20">
    <rect fill="red" x="50%" height="20px" width="2%"/>
  </svg>
  <svg>
    <use href="#mySymbol"/>
  </svg>
</svg>