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

tabatkins has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-values] Add `pl` unit for SVG path length ==
SVG defined percentages in the dashing properties to be relative to 
the stroke-width, but there are good use-cases for doing dashes 
relative to the path length, too (in particular, the common "make it 
look like it's drawing itself" hack needs that; right now you have to 
guess about path length or use JS to calculate and set it manually.

Since we can't change percentages now, and doing a mode-switch to 
change the meaning of percentages dynamically is a bit of an 
anti-pattern, the better solution is to introduce a new unit for path 
length.  Similar to the other "percent-like" viewport units, a path 
should be `100pl` long.

Thoughts on naming?

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/221 using your GitHub 
account

Received on Wednesday, 22 June 2016 19:29:27 UTC