<svg xmlns="http://www.w3.org/2000/svg">
<pattern id="pattern" patternUnits="userSpaceOnUse" width="100" height="200">
<rect y="0" width="100" height="100" fill="#ff0000"/>
<rect y="100" width="100" height="100" fill="#008000"/>
<set attributeName="y" to="100" fill="freeze"/>
</pattern>
<rect width="100" height="100" fill="url(#pattern)"/>
</svg>