| 1 | <svg xmlns="http://www.w3.org/2000/svg" |
| 2 | width="100" |
| 3 | height="100"> |
| 4 | |
| 5 | <rect width="100" |
| 6 | height="100" |
| 7 | x="0" |
| 8 | y="0" |
| 9 | fill="black" /> |
| 10 | |
| 11 | <rect clip-path="url(#clip)" |
| 12 | width="100" |
| 13 | height="100" |
| 14 | x="0" |
| 15 | y="0" |
| 16 | fill="red" /> |
| 17 | |
| 18 | <defs> |
| 19 | <clipPath id="clip" transform="translate(25, 25)"> |
| 20 | <rect width="50" height="50" x="0" y="0"/> |
| 21 | </clipPath> |
| 22 | </defs> |
| 23 | </svg> |