<!DOCTYPE html> | |
<svg> | |
<defs> | |
<rect id="r" x="100" y="50" width="100" height="100"/> | |
<clipPath id="c"> | |
<use xlink:href="#r" style="x: -100px; y: -50px"/> | |
</clipPath> | |
</defs> | |
<rect width="200" height="200" fill="red" clip-path="url(#c)"/> | |
<rect width="100" height="100" fill="green"/> | |
</svg> |