summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/filters/feMorphology-1.svg
blob: cdf91fc01b5898052b3e147098ee40e165140ba5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<svg xmlns="http://www.w3.org/2000/svg">

<filter id="f1" filterUnits="objectBoundingBox" primitiveUnits="objectBoundingBox" 
         x="0" y="0" width="1" height="1">
  <feMorphology operator="erode" radius="0.2 0.2" x="10%" y="10%" width="80%" height="80%"/>
</filter>
<g filter="url(#f1)">
  <rect x="0" y="0" width="100" height="100" fill="#00ff00"/>
</g>

<filter id="f2" filterUnits="objectBoundingBox" primitiveUnits="objectBoundingBox" 
         x="0" y="0" width="1" height="1">
  <feMorphology operator="erode" radius="0.3 0.4" x="10%" y="10%" width="80%" height="80%"/>
</filter>
<g filter="url(#f2)">
  <rect x="100" y="0" width="100" height="100" fill="#00ff00" fill-opacity="0"/>
  <rect x="105" y="5" width="90" height="90" fill="#00ff00"/>
</g>

<filter id="f3" filterUnits="objectBoundingBox" primitiveUnits="objectBoundingBox" 
         x="0" y="0" width="1" height="1">
  <feMorphology operator="dilate" radius="0.2 0.2" x="10%" y="10%" width="80%" height="80%"/>
</filter>
<g filter="url(#f3)">
  <rect x="0" y="100" width="100" height="100" fill="#00ff00"/>
  <rect x="10" y="110" width="80" height="80" fill="#000000"/>
</g>

<filter id="f4" filterUnits="objectBoundingBox" primitiveUnits="objectBoundingBox" 
         x="0" y="0" width="1" height="1">
  <feMorphology operator="dilate" radius="0.2 0.3" x="10%" y="10%" width="80%" height="80%"/>
</filter>
<g filter="url(#f4)">
  <rect x="100" y="100" width="100" height="100" fill="#00ff00" fill-opacity="0"/>
  <rect x="145" y="145" width="10" height="10" fill="#00ff00"/>
</g>

</svg>