Svg: Getscreenctm() For Nested Svg Is Different In Firefox
i have a web page with a svg which has another svg element in it. Thing is that i need to get matrix information via getScreenCTM() method (for nested svg) and firefox is returning
Solution 1:
viewBox is a transform that applies to the children of an element and not the element itself.
If Firefox worked like the other buggy browsers then you'd find it hard to position the inner <svg>
element within the root <svg>
element because its getScreenCTM would be different to the getScreenCTM of a path or rect say.
What you're almost certainly looking for however is the CTM of some element that's within the inner <svg>
element. You'll find that the values are cross-browser consistent in that case.
Post a Comment for "Svg: Getscreenctm() For Nested Svg Is Different In Firefox"