[svgwg] Issue: Allow stroke-dasharray/dashoffset % to be specified relative to path length marked as Needs WG input

AmeliaBR has just labeled an issue for https://github.com/w3c/svgwg as
 "Needs WG input":

== Allow stroke-dasharray/dashoffset % to be specified relative to 
path length ==
This is a frequent author request, and is much simpler than the full 
set of stroke-dashing options proposed in the SVG Strokes module. I'd 
like to get it into SVG 2.

Simple backwards & forewards compatible syntax is to add an optional 
`path` keyword at the beginning or end of either property's value 
grammar.  In future, we can still add segment-relative dashing or 
space/round keywords to adjust dash length to fit.  I was going to 
suggest segment-relative percentages as well, but that gets into the 
messy issue of how to restart the dash pattern for each segment, which
 was a problem for implementations that use underlying libraries 
without that feature.  

Path-length relative percentages are a simple implementation, in 
contrast: just need to calculate total path length and use that to 
resolve the author-specified values into absolute used lengths.



See https://github.com/w3c/svgwg/issues/177

Received on Saturday, 16 July 2016 01:30:28 UTC