Skip to content
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

Implement workaround/fix for getCTM() differences between Firefox and Chrome when using nested SVGs resulting in the nested SVGs not rendering #188

Open
fsuk opened this issue Jan 17, 2024 · 0 comments

Comments

@fsuk
Copy link

fsuk commented Jan 17, 2024

When using elementToSVG on an element containing and SVG the nested SVG is not rendered correctly in Firefox.

This appears to be a long standing bug / difference of interpretation of the SVG spec between Firefox and Chrome.

The issue stems arround the getCTM method (used in svg.ts) returning a matrix with e, f = 0 in Firefox.

Example files attached, one generated in Chrome the other in Firefox

Chorme
Firefox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant