Re: [svgwg] Wrong description of percentage units

@AmeliaBR I find this wording to be still confusing since the size of a viewport element != the size of a viewBox of a viewport element.

Ideally I would rewrite [Chapter 8](https://svgwg.org/svg2-draft/coords.html) to drop the notion that viewBox is optional. Instead I would state that every viewport element (`<svg>`, `<symbol>`) and pseudo-viewport element (`<pattern>`, `<marker>`, `<view>`) has a viewBox which is either explicit (defined by `viewBox` attribute) or implicit (determined from the computed viewport or pseudo-viewport size).

This would make it possible to greatly simplify the definition of a viewBox (i.e. it specifies a finite area of an infinite space) and preserveAspectRatio (i.e. specifies an algorithm for fitting the viewBox into the viewport or pseudo-viewport). Percentage units could be simply defined as relative to the viewBox of the nearest viewport element.

-- 
GitHub Notification of comment by jarek-foksa
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/406#issuecomment-411831396 using your GitHub account

Received on Thursday, 9 August 2018 17:14:37 UTC