W3C home > Mailing lists > Public > www-svg@w3.org > June 2007

Re: Default behavior for not mentioning 'preserveAspectRatio' attribute

From: Dr. Olaf Hoffmann <Dr.O.Hoffmann@gmx.de>
Date: Thu, 28 Jun 2007 17:45:14 +0200
To: www-svg@w3.org, mustaf.here@gmail.com
Message-Id: <200706281745.14416.Dr.O.Hoffmann@gmx.de>

The default for preserveAspectRatio is 

xMidYMid meet

see in the specification:
http://www.w3.org/TR/SVG11/coords.html#PreserveAspectRatioAttribute

Behaviour:
meet means roughly that the viewBox is scaled with 
preserved aspect ratio until it fits at one side to the
viewport and the other side is not larger as the 
viewport.

xMidYMid means roughly, that the result is centered.

I think, this explains already your examples
Received on Thursday, 28 June 2007 16:04:44 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:37 GMT