[svg2] computed value for <length>

Hello,
we have added the 'computed value' field in the property definitions in  
svg2 (compared to svg 1.1). It seems we've mostly added these as  
"specified value". For consistency with css (and implementations to some  
degree) I think we should make <length> use the absolute length as the  
computed value.

Here is the complete list of properties I found that currently use  
'specified value' for <length>:

   cx
   cy
   r
   rx
   ry
   stroke-width
   stroke-dasharray
   stroke-dashoffset
   stroke-dashcorner
   x
   y

Proposed:
The computed length of the above properties should be the absolute length  
or percentage (as applicable).

Open question: how should units be handled (wrt serialization and  
interpolation while animating)? Implementations differ a bit here. Is this  
aspect currently defined anywhere?

I also noticed that stroke-dasharray is defined as "<length> |  
<percentage> | <number>", where most other length-properties in svg2 used  
only "<length> | <percentage>". Is this intentional or not?


-- 
Erik Dahlstrom, Web Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group

Received on Tuesday, 3 March 2015 12:43:30 UTC