<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
<defs> | |
<mask id="mask"> | |
<rect x="-0.5" y="-0.5" width="0.1" height="0.1" fill="white"/> | |
</mask> | |
</defs> | |
<rect x="20" y="20" width="100" height="100" style="fill:green;mask:url(#mask);"/> | |
<text x="60" y="60" style="fill:green;mask:url(#mask);"><tspan>test</tspan></text> | |
</svg> |