summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/filter-in-mask-01.svg
blob: 06c987f241a484875dbfd312b5a7167591ec1b47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<svg xmlns="http://www.w3.org/2000/svg" >
  <defs>
    <filter x="0" y="0" width="1" height="1" id="filter">
      <feOffset/>
    </filter>
    <mask id="mask" x="0" y="0" width="1" height="1">
      <g filter="url(#filter)">
         <rect width="100%" height="100%" fill="white"/>
       </g>
    </mask>
  </defs>
  <rect width="100%" height="100%" fill="red"/>
  <g mask="url(#mask)">
    <rect width="100%" height="100%" fill="lime"/>
  </g>
</svg>