Re: [svgwg] Change definition of percentages to match implementations

@nikosandronikos 

I think that covers it.  I'd keep the first phrase as "For any 
x-coordinate value or width value".

It would take a little more editing to the rest of the spec, but what 
do you think about explicitly stating for each property/attribute 
whether percentages are relative to viewport width vs viewport height 
vs overall size of the viewport? Right now, they all say "Percentages 
refer to the size of the current SVG viewport".  

If we made that change, then the paragraph in Units would be "For any 
x-coordinate value or width value expressed as a percentage of the SVG
 viewport width".

The text for height is directly parallel.  For the other-direction 
lengths, it makes sense to just refer back to those definitions:

> For any other length value expressed as a percentage of the SVG 
viewport, the percentage is calculated as the geometric average of the
 length calculated from that percentage of the viewport width and that
 percentage of the viewport height:  
sqrt((percentage-width)**2 + (percentage-height)**2)/sqrt(2).


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

Received on Monday, 18 July 2016 02:51:26 UTC