- From: Rik Cabanier <cabanier@gmail.com>
- Date: Thu, 17 Apr 2014 13:10:11 -0700
- To: www-svg <www-svg@w3.org>
Received on Thursday, 17 April 2014 20:10:45 UTC
All, 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
Received on Thursday, 17 April 2014 20:10:45 UTC