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