W3C home > Mailing lists > Public > www-svg@w3.org > March 2006

Re: [SVGMobile12] SVGT12-207: Section 7.13 doesn't say how to get aspect ratio from viewBox

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 21 Mar 2006 00:47:08 +0000 (UTC)
To: Andrew Shellshear <Andrew.Shellshear@cisra.canon.com.au>
Message-ID: <Pine.LNX.4.62.0603210046090.315@dhalsim.dreamhost.com>

On Tue, 21 Mar 2006, Andrew Shellshear wrote:
>
> The full paragraph is:
> 
> The intrinsic aspect ratio of the viewport of SVG content is necessary 
> for example, when including SVG from an object element in XHTML styled 
> with CSS. The intrinsic aspect ratio must be calculated based upon the 
> following rules:
> 
>    * The aspect ratio is calculated by dividing width by height.
>    * If the 'width' and 'height' of the rootmost svg element are both
> specified in absolute units (in, mm, cm, pt, pc, px, user units) then the
> aspect ratio is calculated from the 'width' and 'height' after resolving both
> values to user units.
>    * If either/both of the 'width' and 'height' of the rootmost svg element
> are in percentage units, the aspect ratio is calculated from the width and
> height of the 'viewBox' specified for the current SVG document fragment. If
> the 'viewBox' is not correctly specified, or set to none, the intrinsic aspect
> ratio cannot be calculated and is considered unspecified.

Yep, that seems good. Thanks!

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 21 March 2006 01:21:55 GMT

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