You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Features section in SVG 2 spec, references to external resources is defined to be URLs which are neither referencing something inside the document, nor a data URI. (The same definition differs in the SVG Integration spec which there is #768 for.)
I'm wondering whether it makes sense to allow blob URLs when they are generated from a document in the same origin. This would be an good escape from external reference restriction, because it's not always efficient to encode external resources in data URI.
In the Features section in SVG 2 spec,
references to external resources
is defined to be URLs which are neither referencing something inside the document, nor a data URI. (The same definition differs in the SVG Integration spec which there is #768 for.)I'm wondering whether it makes sense to allow blob URLs when they are generated from a document in the same origin. This would be an good escape from external reference restriction, because it's not always efficient to encode external resources in data URI.
As an example, this code
allows the generated SVG to reference some resources generated inside the current page.
As far as I can see, this example currently works in Firefox, but not Chrome or Safari.
It can be useful when you want to have a generated SVG to include
Generating such SVG can be helpful when you try to compose images then generate rasterized image (via painting the SVG to the canvas again).
The text was updated successfully, but these errors were encountered: