summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/image/image-filter-01.svg
blob: 6ec5a576dce533cecbc337ee405bb33797cc5f09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink">
  <!-- This test confirms that images with filters get drawn.
       (This test uses a no-op filter, for simplicity).
    -->
  <style>
    image { filter: url(#noop); }
  </style>
  <defs>
    <filter id="noop" x="0%" y="0%" width="100%" height="100%">
      <feConvolveMatrix order="1" kernelMatrix="1"/>
    </filter>
  </defs>

  <g transform="translate(2, 2)">
    <image x="0"  y="0"  width="10" height="10" xlink:href="blueRect10x10.png"/>
    <image x="20" y="0"  width="10" height="10" xlink:href="blueRect10x10.png"/>
    <image x="0"  y="20" width="10" height="10" xlink:href="blueRect10x10.png"/>
    <image x="20" y="20" width="10" height="10" xlink:href="blueRect10x10.png"/>
  </g>
</svg>