svgwave icon indicating copy to clipboard operation
svgwave copied to clipboard

preserveAspectRatio="none"

Open achimmihca opened this issue 3 years ago • 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.

achimmihca avatar Aug 14 '22 18:08 achimmihca

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".

anup-a avatar Aug 15 '22 14:08 anup-a

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"

achimmihca avatar Aug 15 '22 15:08 achimmihca