<svg xmlns="http://www.w3.org/2000/svg">
<linearGradient id="gradient" x2="50%">
<stop stop-color="#008000" offset="0"/>
<!-- 0.99 rather than 1 to counter a bug with pad -->
<stop stop-color="#008000" offset="0.99"/>
<stop stop-color="#ff0000" offset="1"/>
<set attributeName="spreadMethod" to="repeat" fill="freeze"/>
</linearGradient>
<rect width="100" height="100" fill="#ff0000"/>
<rect width="100" height="100" fill="url(#gradient)"/>
</svg>