| 1 | <svg width="100" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 2 | <!-- We set the filter's bounds to exactly match the filtered |
| 3 | object, as the default is to extend a bit past its edges. This |
| 4 | lets the embedded.svg image match the reference results |
| 5 | exactly.--> |
| 6 | <filter id="foo" filterUnits="objectBoundingBox" x="0" y="0" width="100%" height="100%"> |
| 7 | <feImage xlink:href="embedded.svg"/> |
| 8 | </filter> |
| 9 | |
| 10 | <rect width="100%" height="100%" fill="white"/> |
| 11 | <rect x="10" y="10" width="10" height="10" filter="url(#foo)"/> |
| 12 | </svg> |