Re: [svgwg] 8.2 equivalent transform of an SVG viewport, slight ambiguity. (#766)

Since larger of x and y can only be a reference to the value of the variable and not something which strictly speaking identifies it. The word larger there can only refer to the value and programmatically that easily means `max(scale-x, scale-y)` since that's the larger, but it wants the larger variable given the smaller value. I think it should read:

* If align is not 'none' and meetOrSlice is 'meet', set the larger variable of scale-x and scale-y to the smaller value.

or:

* If align is not 'none' and meetOrSlice is 'meet', set scale-x and scale-y to the smaller value

This implies setting the smaller value to itself, but that's pretty unambiguous that it means scale_x = scale_y = min(scale_x,scale_y).



-- 
GitHub Notification of comment by tatarize
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/766#issuecomment-568944800 using your GitHub account

Received on Thursday, 26 December 2019 01:27:45 UTC