What\'s the difference between displaying a SVG image in an or tag? I was facing some problems using SVG images in a &
Differences when SVG is used as an image (html <img> SVG <image> or CSS background images)
I suspect you're suffering from the no external dependencies rule. You may also want to check that the SVG data has a preserveAspectRatio attribute on the root element and if it does that the value of that attribute is not none.