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-2.svg
<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500">
<filter id="f1" filterUnits="userSpaceOnUse" primitiveUnits="userSpaceOnUse">
<feMorphology operator="erode" radius="20 20"/>
</filter>
<g filter="url(#f1)">
<rect x="0" y="0" width="100" height="100" fill="#00ff00"/>
</g>
<filter id="f2" filterUnits="userSpaceOnUse" primitiveUnits="userSpaceOnUse">
<feMorphology operator="erode" radius="30 40"/>
</filter>
<g filter="url(#f2)">
<rect x="105" y="5" width="90" height="90" fill="#00ff00"/>
</g>
<filter id="f3" filterUnits="userSpaceOnUse" primitiveUnits="userSpaceOnUse">
<feMorphology operator="dilate" radius="20 20"/>
</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="userSpaceOnUse" primitiveUnits="userSpaceOnUse">
<feMorphology operator="dilate" radius="20 30"/>
</filter>
<g filter="url(#f4)">
<rect x="145" y="145" width="10" height="10" fill="#00ff00"/>
</g>
</svg>