Re: [csswg-drafts] [css-values] Add `pl` unit for SVG path length

As I've discussed on the [SVGwg 
issue](https://github.com/w3c/svgwg/issues/177), I am not convinced 
that a new unit is the best way to address this issue:

- I would like to eventually extend the stroke dashing properties to 
allow dashing patterns relative to path segment or sub-path length.

- The switch to segment or sub-path dash patterns would affect more 
than just the resolution of lengths (dashing would be calculated for 
each section of the path separately), so adding more units would not 
cover those use cases.  Plus, a whole suite of SVG-specific units 
clutters up CSS Values.

- There are very few properties where you would be able to use these 
units, other than `stroke-dasharray`, `stroke-dashoffset`.  You 
certainly couldn't use them in SVG geometry properties, which change 
the path length.  Motion path offset could use them, but motion path 
already defines percentages relative to path length.  The proposed SVG
 marker-pattern property, which uses a dasharray-like syntax would use
 them.  But again, we could just define percentages to be useful from 
the start.  And there would still be a use case for lengths relative 
to segment or sub-path.

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/221#issuecomment-228405312 
using your GitHub account

Received on Friday, 24 June 2016 17:15:40 UTC