- From: Олег Максименко <olegmax@gmail.com>
- Date: Mon, 29 Dec 2014 13:11:10 +0300
- To: www-svg@w3.org
Received on Monday, 29 December 2014 10:11:36 UTC
Reading Specification 1.1 I get the idea that percentage length values are defined as relative to the viewport, and viewbox/preserveAspectRatio is just some handy feature that is mapped to transformation. But playing with some SVG implementations I found that percentages are actually relative to viewbox (it become apparent when aspect ratio is changed by viewbox/preserveAspectRatio) and replacing viewbox attribute with corresponding transformations doesn't work when percentage lengths are used in descendant elements. E.g. in sample http://www.w3.org/TR/SVG/images/coords/PreserveAspectRatio.svg viewport is blue rectangle, but rect(0,0,100%,100%) will coincide with red rectangle of viewbox. Am I missing some nuance in specification? Thank you, Oleg
Received on Monday, 29 December 2014 10:11:36 UTC