- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Thu, 6 Sep 2012 20:00:01 -0700
- To: www-style@gtalbot.org
- Cc: Public W3C www-style mailing list <www-style@w3.org>
On Thu, Sep 6, 2012 at 7:32 PM, "GĂ©rard Talbot" <www-style@gtalbot.org> wrote: > What is the intrinsic ratio of the svg element in this test? And how do > you figure it out? It has no intrinsic ratio. An SVG has an intrinsic width or height if the 'width' or 'height' attributes are specified on it. It has an intrinsic ratio if the 'viewBox' attribute is specified on it (in which case the ratio is determined from the ratio of the width/height of the box so specified), or implicitly if it has an intrinsic width and height. (Having any two of width, height, and ratio implies the third automatically.) So, the SVG in this test has an intrinsic height (due to the 'height' attribute), but no intrinsic width or intrinsic aspect ratio. ~TJ
Received on Friday, 7 September 2012 03:00:49 UTC