New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] image_rgba in exported svg does not open properly in editors (like inkscape) #11649
Comments
@Tushar-N according to MDN the usage you propose is deprecated and not recommended: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xlink:href So I would definitely not regard this as a bug, or at least, not one on our end. It seems like this is known and open issue on Inkscape: https://gitlab.com/inkscape/inbox/-/issues/620 I guess my going-in position would be that this is something for Inkscape to sort out, and that we should not output deprecated web standards by default. At most, something like that would need to be behind a compatibility flag of some sort. cc @mattpap |
Thanks for the pointer, I wasn't aware of this.
Makes sense to me. A compatibility flag would be great since Inkscape is popular, or a warning somewhere in the docs for people who try and edit the files. This issue can be closed otherwise. |
We used to support xlink, but given that all browsers (even IE 11) support plain |
@mattpap how do you want to triage this? If you don't want to restore it, that's ok with me, but then we should close. |
Support for |
Running this example and then exporting to svg.
results in an svg that can render properly in browser, but does not open in Inkscape. Fix:
xmlns:xlink="http://www.w3.org/1999/xlink"
is missing from the namespacexlink:href
attribute (instead of justhref
)i.e. if I re-write the .svg file with these replacements, it will open fine
The text was updated successfully, but these errors were encountered: