<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
<filter id="invalid_paint">
<rect width="10" height="10" fill="url(#invalid_paint)"/>
<rect width="10" height="10" stroke="url(#invalid_paint)"/>
</filter>
<filter id="invalid_shape">
<rect width="10" height="10" clip="url(#invalid_shape)"/>
</filter>
<filter id="invalid_mask">
<rect width="10" height="10" mask="url(#invalid_mask)"/>
</filter>
<text x="20" y="20">This should not crash.</text>
</svg>