<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>userSpaceOnUse SVG Patterns</title>
</head>
<body>
There should be no red displayed on the screen, and the patterns should not change when the browser window is resized.<br/><br/>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg" width="200" height="300" style="border: solid 1px black;">
<g>
<rect x="0" y="100" width="100" height="50" fill="red"/>
<rect x="100" y="0" width="100" height="50" fill="red"/>
<rect x="0" y="100" width="100" height="100" fill="url(#pattern)"/>
<rect x="100" y="0" width="100" height="100" fill="url(#pattern)"/>
</g>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg" width="200" height="300" style="border: solid 1px black;">
<text x="5" y="280">+Transforms</text>
<g transform="translate(0, 100)">
<rect width="100" height="50" fill="red"/>
<rect width="100" height="100" fill="url(#pattern)"/>
</g>
<g transform="translate(100, 0)">
<rect width="100" height="50" fill="red"/>
<rect width="100" height="100" fill="url(#pattern)"/>
</g>
<defs>
<pattern id="pattern" patternUnits="userSpaceOnUse" patternContentUnits="userSpaceOnUse" x="0" y="0" width="100" height="100">
<rect width="100" height="25" preserveAspectRatio="none" fill="green"/>
<rect width="100" y="25" height="25" preserveAspectRatio="none" fill="blue"/>
</pattern>
</defs>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg" width="200" height="300" style="border: solid 1px black; will-change: transform;">
<text x="5" y="280">+Accelerated Compositing</text>
<g>
<rect x="0" y="100" width="100" height="100" fill="url(#pattern)"/>
<rect x="100" y="0" width="100" height="100" fill="url(#pattern)"/>
</g>
</svg>
</body>
</html>