summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/use-02.svg
blob: 5ebaed85dc1fae642372c99e52c191bb71619881 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<svg xmlns="http://www.w3.org/2000/svg">
  <title>Testing that 'use' with zero width/height is displayed when
         not referencing svg or symbol elements</title>
  <defs>
    <rect id="to-cover" x="2" y="2" height="96" width="96" fill="red"/>
    <rect id="r" x="0" y="0" height="100" width="100" fill="lime"/>
  </defs>
  <rect width="100%" height="100%" fill="lime"/>

  <use href="#to-cover"/>
  <use x="110" href="#to-cover"/>
  <use y="110" href="#to-cover"/>

  <use href="#r" width="0" height="0" />
  <use x="110" href="#r" width="0" />
  <use y="110" href="#r" height="0" />
</svg>