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

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 UTC