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

