Issue metadata
Sign in to add a comment
|
Most preserveAspectRatio values still not working for SVG <image> content
Reported by
papal...@gmail.com,
Jul 10 2017
|
||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.50 Safari/537.36 Steps to reproduce the problem: 1. Inside an SVG reference to another SVG using the <image> element. 2. Try to use various settings "preserveAspectRatio" attribute. 3. See that apart from the default value and its equivalents (preserveAspectRatio="xMidYMid meet") none of the attribute values work as expected. What is the expected behavior? The behavior as described at https://www.w3.org/TR/SVG/single-page.html#coords-PreserveAspectRatioAttribute or https://www.w3.org/TR/SVG2/coords.html#PreserveAspectRatioAttribute What went wrong? Most valid values for the "preserveAspectRatio" attribute for SVG <image> elements referencing another SVG are apparently ignored. Apart from setting it to "none" or the default value it does not work (that is even if the referenced SVG image has the "viewbox" attribute set). Did this work before? No Does this work in other browsers? No In Mozilla Firefox more possible "preserveAspectRatio" settings work but not all. In Microsoft IE/Edge none work. (I am only referring to the cases where a SVG image is referenced.) Chrome version: 60.0.3112.50 Channel: beta OS Version: 10.0 Flash Version: Note that the embedded SVG in my example has the "viewbox" attribute set. For the case without it voices at Mozilla argue that it would be unwise to make guesses. This issue can be seen as a successor of the fixed https://crbug.com/428324 issue which dealt with the 'preserveAspectRatio="none"' case. Also, the issue was mentioned in the comments to the not entirely related bug entry https://crbug.com/499373 (that issue deals with non-default values of the "preserveAspectRatio" attribute set to the SVG root element of a referenced SVG, also it referenced the deprecated "defer" attribute value part).
,
Jul 10 2017
,
Jul 11 2017
This is a duplicate of the mentioned issue 499373 ("default" or implicit value vs. explicit does not really matter much in this context.) |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 Deleted