<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
<defs> | |
<rect id="rect" width="200" height="200" fill="green" clip-path="url(#clip2)"/> | |
</defs> | |
<clipPath id="clip2"> | |
<rect width="150" height="150"/> | |
</clipPath> | |
<clipPath id="clip1"> | |
<rect x="50" y="50" width="150" height="150"/> | |
</clipPath> | |
<use xlink:href="#rect" clip-path="url(#clip1)"/> | |
</svg> |