W3C home > Mailing lists > Public > www-style@w3.org > September 2012

Re: [CSS21] intrinsic ratio, intrinsic values and svg elements

From: Gérard Talbot <www-style@gtalbot.org>
Date: Thu, 6 Sep 2012 23:43:04 -0400
Message-ID: <0733556ee7556c4bc7522685cfc6220d.squirrel@ed-sh-cp3.entirelydigital.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: "Public W3C www-style mailing list" <www-style@w3.org>

Le Jeu 6 septembre 2012 23:00, Tab Atkins Jr. a écrit :
> 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.

Ok. Thank you, Tab. I appreciate your assistance here.

An svg element is by definition an inline replaced element, right?

CSS 2.1 Test suite RC6, March 23rd 2011

Contributions to CSS 2.1 test suite

Web authors' contributions to CSS 2.1 test suite
Received on Friday, 7 September 2012 03:43:27 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:03 UTC