RE: zero length dashes

On 2014-04-17 Rik Cabanier wrote:
> the SVG 2.0 spec [1] doesn't deal with zero length dashes.
> example: http://jsfiddle.net/hGjf5/
> 
> When a dash is of length 0, its end caps are supposed to be drawn along
> the direction of the original path.
> Maybe what the SVG spec should do is:
> - defined the concept of an original subpath which is the path before
> it is divided into subpaths before the dash array is defined
> - update the section that describes drawing the end caps so it refers
> to this new concept.
> ie
>  its longer edges, A and B, are parallel to the line
> perpendicular to the original subpath at distance position along it.
> 
> Running some experiments, only Chrome does not implement this behavior.
> FF, Safari and IE all display the jsfiddle example correctly.
> 
> 1: https://svgwg.org/svg2-draft/painting.html#TermStrokeShape

More examples can be found in this related Chrome issue:
https://code.google.com/p/chromium/issues/detail?id=162424

Jan

Received on Thursday, 17 April 2014 21:35:32 UTC