blob: 92c805786008d8d82e6f293d926d71c7751a30e8 [file] [log] [blame]
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Test for http://crbug.com/311548 -->
<g>
<rect width="100" height="100" fill="green" filter="url(#filter)"/>
</g>
<defs>
<filter id="filter" filterUnits="userSpaceOnUse" x="0" y="0" width="100" height="100" filterRes="400">
<feOffset/>
</filter>
</defs>
<text>PASS: did not crash.</text>
<script>
if (window.testRunner)
testRunner.dumpAsText();
setTimeout(function() {
document.getElementById('filter').setAttribute('width', 99);
}, 0);
</script>
</svg>