<body>
    <p>This test passes if it doesn't crash.</p>
    <svg width="200" height="200">
        <defs>
            <pattern id="pattern" x="0" y="0" width="1" height="1">
                <rect x="0" y="0" width="50" height="100" fill="green"/>
                <rect x="50" y="0" width="50" height="100" fill="blue"/>
            </pattern>
        </defs>
        <rect width="100" height="100" fill="url(#pattern)" stroke="black"/>
        <rect x="100" y="100" width="100" height="100" fill="url(#pattern)" stroke="black"/>
    </svg>
    <script>
        if (window.testRunner)
            testRunner.dumpAsText()
    </script>
</body>
