<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
<defs> | |
<clipPath id="clip"> | |
<!-- fill and stroke properties should be ignored --> | |
<text x="40" y="160" font-size="80" font-weight="bold"><tspan stroke="red" fill="none">CLIP</tspan></text> | |
</clipPath> | |
</defs> | |
<rect x="40" y="40" height="300" width="300" style="fill:green;clip-path:url(#clip);"/> | |
</svg> |