Skip to content

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

@fsuk

Description

@fsuk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions