Re: SVG image security restrictions

On Mon, Sep 14, 2015 at 5:04 PM, Robert O'Callahan <robert@ocallahan.org> wrote:
> A better idea might be to provide a way to pass in resources as parameters,
> including from a CSS style sheet. This might even perform better if you have
> a lot of SVG images using the same resources. Sketch:
>   background-image: url-with-params("image.svg", "shared-resources.svg");
> In the SVG:
>   <rect fill="param(1#pattern)">
> You'd require everything in url-with-params to be same-origin.

We've switched url() over to a function, so we can add arguments to it.

~TJ

Received on Tuesday, 15 September 2015 00:27:31 UTC