News for hackers. Stuff that matters.
Re:Why We Need a ViewBox Property in CSS by pavlov on Saturday May 23, 2015 @02:13PM (#9593771)
Rather than converting viewbox-style bounds coordinates into translate/scale property values, it's probably better to use the matrix property (which is also part of CSS transforms).

The math is trivial, and the transformation matrix is conceptually much more powerful. You can start out with just the 2D zoom effect shown here, and then add rotation and even 3D transformations later while still using just one matrix.

There are no comments on this comment yet.