Preserve­Aspect­Ratio in SVG

This article was written in 2015. It might or it might not be outdated. And it could be that the layout breaks. If that’s the case please let me know.

I’m always amazed by the incredible amount of possibilities that SVG offers. So many things that I coulnd’t imagine I’d ever need are in there. But once I know they exist, I can make better stuff. Take for instance the preserveAspectRatio attribute. I only knew its none value, but it’s much more powerful than that. In this post Joni Trythall touches the surface of what’s possible with preserveAspectRatio. When you’re done reading his blog post you probably want to go ahead and read his Pocket Guide to Writing SVG as well.