OLD | NEW |
1 <svg xmlns="http://www.w3.org/2000/svg" | 1 <svg xmlns="http://www.w3.org/2000/svg" |
2 xmlns:xlink="http://www.w3.org/1999/xlink"> | 2 xmlns:xlink="http://www.w3.org/1999/xlink"> |
3 <defs> | 3 <defs> |
4 <clipPath id="myclip"> | 4 <clipPath id="myclip"> |
5 <path style="-webkit-transform: scale(.5)" d="M 0 0 l 200 0 l 0 200 l -2
00 0 Z"/> | 5 <path style="transform: scale(.5)" d="M 0 0 l 200 0 l 0 200 l -200 0 Z"/
> |
6 </clipPath> | 6 </clipPath> |
7 </defs> | 7 </defs> |
8 <g clip-path="url(#myclip)"> | 8 <g clip-path="url(#myclip)"> |
9 <rect x="0" y="0" width="200" height="200" fill="red"/> | 9 <rect x="0" y="0" width="200" height="200" fill="red"/> |
10 <rect x="0" y="0" width="100" height="100" fill="green"/> | 10 <rect x="0" y="0" width="100" height="100" fill="green"/> |
11 </g> | 11 </g> |
12 </svg> | 12 </svg> |
13 | 13 |
OLD | NEW |