Note that you can do this without having to layer HTML/SVG together, it can all go in one single SVG by nesting more <svg> elements inside, with their own viewBox attributes.
See the example in https://svgwg.org/svg2-draft/coords.html#PreserveAspectRatioAttribute …
(thanks, @dnasleakim!)https://twitter.com/Rich_Harris/status/1223277304819998721 …
-
-
Pair it with a `vector-effect: non-scaling-stroke;` when you're scaling graphic only, to make it not look like a mistake when the graph gets big ^_^
-
what the heck, why can't i fork that, i wanna show it off
Kraj razgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.