News for hackers. Stuff that matters.
Re:Why We Need a ViewBox Property in CSS by jarek-foksa on Saturday May 23, 2015 @07:47PM (#9594817)
The only purpose of the viewBox attribute is to define a rectangular area in the abstract coordinate system.

How that area will be fit into the viewport is determined by the "preserveAspectRatio" attribute.

If you don't define any viewBox then there will be no scaling - 1px in the viewport coordinate system will be mapped to 1 user unit in the abstract initial user coordinate system.

There are no comments on this comment yet.