shakyShane / gulp-svg-sprites

Create SVG sprites or compile to <symbols>
MIT License
334 stars 45 forks source link

Include viewbox in code preview #111

Open davidwebca opened 6 years ago

davidwebca commented 6 years ago

Currently, if viewbox is not included, the parent SVG is at default height, even if width is specified in CSS (downscaling an icon proportionnaly by specifying only the width becomes impossible). I think the spec of SVG2 will remove this requirement, but right now latest Chrome (62.0.3202.94) and Firefox Quantum (58) don't do it, so it's impossible to manage an SVG icon this way.

davidwebca commented 6 years ago

Here's an example : https://codepen.io/david_treblig/pen/VrroGb