<svg xmlns="http://www.w3.org/2000/svg"> | |
<linearGradient id="gradient"> | |
<stop stop-color="#008000" offset="0.5"/> | |
<stop stop-color="#ff0000" offset="0.5"/> | |
<set attributeName="x2" to="200%" fill="freeze"/> | |
</linearGradient> | |
<rect width="100" height="100" fill="#ff0000"/> | |
<rect width="100" height="100" fill="url(#gradient)"/> | |
</svg> |