anup-a/svgwave

preserveAspectRatio="none"

achimmihca opened this issue · 2 comments

Firefox only stretches an SVG freely if it has preserveAspectRatio="none" set on the root svg element (see StackOverflow)

Please add this property to the generated SVG code.

Hi @achimmihca, Did you mean this https://codepen.io/anup-a/pen/OJvBebv ?

If yes, then this behaviour is consistent across browsers. But yeah I guess it would be helpful to include preserveAspectRatio="none".

Yes, this is what I mean. I expected the SVG to change size (i.e., stretch freely) according to the div I put it in. This can be achieved via preserveAspectRatio="none"