Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

SVG Preview (Scaled)

Preview of https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/reftests/svg/filters/feMorphology-1.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>