- From: Robert Longson via GitHub <sysbot+gh@w3.org>
- Date: Thu, 02 Apr 2020 06:53:23 +0000
- To: public-svg-issues@w3.org
Other (raster) image formats don't have a way to indicate that their aspect ratio should be preserved (or not). SVG does. SVG also has a way for you to override that via SVG fragment identifiers e.g. img.src = "https://upload.wikimedia.org/wikipedia/commons/1/1a/SVG_example_markup_grid.svg#svgView(preserveAspectRatio(none))"; you can even turn the viewBox off (at least in Firefox) via the SVG 1.2 Tiny syntax of viewBox(none) So I don't see why we shouldn't (by default) try to respect the image authors wishes and preserve the aspect ratio if that is important given that we also provide a way out if necessary. -- GitHub Notification of comment by longsonr Please view or discuss this issue at https://github.com/w3c/svgwg/issues/762#issuecomment-607657271 using your GitHub account
Received on Thursday, 2 April 2020 06:53:26 UTC