W3C home > Mailing lists > Public > www-style@w3.org > November 2011

Re: [CSS21] Background-image: intrinsic ratio of SVG images

From: Gérard Talbot <www-style@gtalbot.org>
Date: Mon, 14 Nov 2011 15:20:37 -0800
Message-ID: <8f9945a342bd99d6fd70aabb0c8dc70a.squirrel@gtalbot.org>
To: "L. David Baron" <dbaron@dbaron.org>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, "Public W3C www-style mailing list" <www-style@w3.org>

Le Lun 14 novembre 2011 14:23, L. David Baron a écrit :
> On Monday 2011-11-14 14:14 -0800, "Gérard Talbot" wrote:
>> If, say, an SVG image has
>>
>> <svg xmlns="http://www.w3.org/2000/svg">
>>  <rect width="100" height="200" fill="green"/>
>> </svg>
>>
>> than such SVG image has a 1 to 2 intrinsic ratio.
>
> No; the only things that give SVG images an intrinsic ratio are:
>  * the viewBox attribute on the svg element
>  * the height and width attributes on the svg element (but not if
>    they're percentages)
>
> This is described in
> http://www.w3.org/TR/SVG11/coords.html#IntrinsicSizing .
>
>> I am wondering here how a SVG image could have an intrinsic ratio
>> without
>> intrinsic dimensions. How would that be possible for a SVG image? This
>> is
>> furthermore relevant since section 14.2.1 mentions such possibility
>> (it's
>> the paragraph I quoted above).
>
> Via the viewBox attribute.

Ok. Thank you David and Tab. That answers my questions.

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 Monday, 14 November 2011 23:21:07 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:46 GMT