W3C home > Mailing lists > Public > www-svg@w3.org > January 2011

Re: HTML5 embedded SVG - height/width: auto

From: Chris Lilley <chris@w3.org>
Date: Wed, 19 Jan 2011 20:16:31 +0100
Message-ID: <367403581.20110119201631@w3.org>
To: Andrei Bucur <abucur@adobe.com>
CC: "www-svg@w3.org" <www-svg@w3.org>
On Wednesday, January 19, 2011, 1:59:20 PM, Andrei wrote:

AB> Hello everyone,

AB> The new approach makes this section pretty much obsolete:
AB> http://dev.w3.org/SVG/profiles/1.1F2/publish/styling.html#UAStyleSheet
AB> Having a SVG like this:
AB> <svg style="width:100%;" viewBox="0 0 100 200">
AB> …
AB> </svg>

AB> An implementor should compute a height of 2*width, not 100%,
AB> right? But if the CSS width is not specified, the dimensions should be 100%/100%?

The CSS width and height properties, and the SVG width and height attributes, are not the same.

 Chris Lilley   Technical Director, Interaction Domain                 
 W3C Graphics Activity Lead, Fonts Activity Lead
 Co-Chair, W3C Hypertext CG
 Member, CSS, WebFonts, SVG Working Groups
Received on Wednesday, 19 January 2011 19:22:43 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:23 UTC