| OLD | NEW |
| 1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k"> | 1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k"> |
| 2 <!-- Test for http://crbug.com/311548 --> | 2 <!-- Test for http://crbug.com/311548 --> |
| 3 <g> | 3 <g> |
| 4 <rect width="100" height="100" fill="green" filter="url(#filter)"/> | 4 <rect width="100" height="100" fill="green" filter="url(#filter)"/> |
| 5 </g> | 5 </g> |
| 6 | 6 |
| 7 <defs> | 7 <defs> |
| 8 <filter id="filter" filterUnits="userSpaceOnUse" x="0" y="0" width="100" hei
ght="100" filterRes="400"> | 8 <filter id="filter" filterUnits="userSpaceOnUse" x="0" y="0" width="100" hei
ght="100" filterRes="400"> |
| 9 <feOffset/> | 9 <feOffset/> |
| 10 </filter> | 10 </filter> |
| 11 </defs> | 11 </defs> |
| 12 | 12 |
| 13 <text>PASS: did not crash.</text> | 13 <text>PASS: did not crash.</text> |
| 14 | 14 |
| 15 <script> | 15 <script> |
| 16 if (window.testRunner) | 16 if (window.testRunner) |
| 17 testRunner.dumpAsText(); | 17 testRunner.dumpAsText(); |
| 18 | 18 |
| 19 setTimeout(function() { | 19 setTimeout(function() { |
| 20 document.getElementById('filter').setFilterRes(100, 100); | 20 document.getElementById('filter').setAttribute('width', 99); |
| 21 }, 0); | 21 }, 0); |
| 22 </script> | 22 </script> |
| 23 </svg> | 23 </svg> |
| OLD | NEW |