- From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
- Date: Fri, 26 Aug 2016 17:51:28 +0000
- To: public-svg-issues@w3.org
AmeliaBR has just labeled an issue for https://github.com/w3c/svgwg as "SVG Core": == Spec synthesis of viewBox/preserveAspectRatio for viewBox-less SVGs in image contexts == Consider this a "prod" for ISSUE-2258 [1], which seems to have been lingering for a bit now. This is a behavior that I believe most UAs (browsers) implement to some degree already, but I don't think it's formally stated anywhere. If the integration spec will live on I guess that's where it'd go. To expand, this is about synthesizing a `viewBox` and set `preserveAspectRatio` to `none ` for SVGs embedded through `<img>` (and `background-image`, etc.) that do not have a `viewBox` specified, but does have width and height. Based on [2] this appears to be something that authors expect. Blink intends to try and align with what Gecko (and I believe IE/Edge) has implemented, since currently we only synthesize a `viewBox`. IIUC, Gecko also allows for percentage width/height. See [3] for Gecko bug and discussions, and [4] (from [3]) for some examples. I hope that's enough context. [1] https://www.w3.org/Graphics/SVG/WG/track/issues/2258 [2] https://crbug.com/110195 [3] https://bugzilla.mozilla.org/show_bug.cgi?id=614649 [4] https://jwatt.org/svg/tmp/embedded-sizing/embedded.html See https://github.com/w3c/svgwg/issues/249
Received on Friday, 26 August 2016 17:51:35 UTC