Dumb SVG question: what's SVG text font-size in viewport units relative to? I'm confused. This is 100vmin (line 55) codepen.io/thebabydino/pen/7…
3
1
2
@anatudor It depends how you include it. It inherits the page one when used inline, but uses its own in an img/iframe/etc.
1
@anatudor @FremyCompany Is the SVG in its own document in an iframe (with the iframe's viewport) or is it inline SVG within the HTML?
1
1
1
@davidbaron @FremyCompany Inline! I always do inline... it's easy to forget there are other ways when I don't even really see their point...
1
@anatudor @FremyCompany So it should use the viewport of the outer document... and then if the SVG has a viewBox, scale by its scale!
1
@anatudor @FremyCompany oops, *scaled* by its scale. Anyway, sometimes you just want the VG without the S. If so, don't use viewBox.
Apr 16, 2016 · 6:24 AM UTC
1


