- From: Daniel Holbert via GitHub <sysbot+gh@w3.org>
- Date: Tue, 11 Oct 2016 21:51:03 +0000
- To: public-svg-issues@w3.org
To provide more context/details: @jakearchibald is asking about a case with an SVG `<image>` that points to an SVG file, and with no `viewBox` attribute in that external SVG file's root `<svg>` node. If no `viewBox` is present, I believe the spec requires `<image>` to just present a cropped "window" into the inner document's user-space -- I don't think any any auto-scaling-to-fit is supposed to be done (in part because there's no defined boundaries or region to be scaled). We *could* synthesize a viewBox, as we do for HTML `<img>`, but the SVG spec would need to define that. Perhaps it should, if all browsers besides Firefox do this currently? (Opera/Presto, v 12.16, actually matches Firefox's behavior, but perhaps that's not relevant since modern Opera is on Blink now.) -- GitHub Notification of comment by dholbert Please view or discuss this issue at https://github.com/w3c/svgwg/issues/249#issuecomment-253057524 using your GitHub account
Received on Tuesday, 11 October 2016 21:51:10 UTC