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

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?

Gérard
-- 
CSS 2.1 Test suite RC6, March 23rd 2011
http://test.csswg.org/suites/css2.1/20110323/html4/toc.html

Contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

Web authors' contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html

Received on Friday, 7 September 2012 03:43:27 UTC