- From: Romain Deltour via GitHub <sysbot+gh@w3.org>
- Date: Thu, 23 Apr 2020 20:48:33 +0000
- To: public-svg-issues@w3.org
rdeltour has just created a new issue for https://github.com/w3c/svgwg: == Clarify the definition of intrinsic dimensions of inline SVG == Section [8.12 Intrinsic sizing properties of SVG content](https://www.w3.org/TR/SVG2/coords.html#SizingSVGInCSS) says the _intrinsic dimensions_ are determined from the width and height **sizing properties**. However, in practice, it seems only the `width` and `height` **presentation attributes** are taken into account; sizing properties overridden in CSS are ignored by UA to compute the intrinsic dimensions (tested on latest stable versions of Chrome, Firefox, and Safari on macOS). See the following [test case](https://codepen.io/rdeltour/pen/XWmpvrN). On the one hand this behaviour may sound natural (the presentation attributes are more "intrinsic" than externally-specified CSS). On the other hand, the spec isn't explicit about it, and this can cause confusion (see [a twitter thread](https://twitter.com/heydonworks/status/1252979404747177985) initiated by @heydon) Quoting @AmeliaBR: > For inline SVG, it is pretty standard that the CSS width/height override the attribute width/height using normal CSS rules. > So it's a bit odd that attributes are still be used for aspect ratio.🤔 Please view or discuss this issue at https://github.com/w3c/svgwg/issues/794 using your GitHub account
Received on Thursday, 23 April 2020 20:48:38 UTC