Re: HTML5 embedded SVG - height/width: auto

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