- From: Dr. Olaf Hoffmann <Dr.O.Hoffmann@gmx.de>
- Date: Wed, 19 Jan 2011 18:58:24 +0100
- To: www-svg@w3.org, abucur@adobe.com
Hello, just my observation on this issue: Within the current recommendations for SVG there are no applicable properties height or width anyway, see property index, therefore it should not matter, what is mentioned in the style attribute about the properties width and height. What should matter are possible attributes width and height for the svg element, and this is indeed defined, including the interaction with CSS. Because the attributes width and height are missing on the root svg element, this defaults both to 100% in SVG. Because there is no attribute preserveAspectRatio noted, the scaling for the x and y directions are the same. The scaled viewBox corresponds to the largest rectangle, that fits into the available viewport for the svg element. Could be interesting as well to investigate what the result for preserveAspectRatio="none" is ... If it is intended, that CSS properties like width and height should matter for the root svg element somehow, this needs to be changed for example for SVG 2, however concerning SVG 1.1 and SVG tiny 1.2 this would be incompatible with the current recommendations. Olaf
Received on Wednesday, 19 January 2011 17:58:59 UTC