SyntaxFix
Write A Post
Hire A Developer
Questions
Above answers did not work for me. Adding the attribute preserveAspectRatio="xMidYMin" to the <svg> tag did the trick though. The viewBox attribute needs to be specified for this to work as well. Source: Mozilla developer network
preserveAspectRatio="xMidYMin"
<svg>
viewBox