Comment 7 for bug 166298

Revision history for this message
fabb (milkservice) wrote :

Could we reopen the bug as the problem still persists? (I have no privileges to do so)

I do *not* think that Inkscape has implemented this correctly.

From the Spec of SVG 1.1 (http://www.w3.org/TR/SVG11/painting.html#StrokeProperties):
A subpath (see Paths) consisting of a single moveto shall not be stroked. Any zero length subpath shall not be stroked if the ‘stroke-linecap’ property has a value of butt but shall be stroked if the ‘stroke-linecap’ property has a value of round or square, producing respectively a circle or a square centered at the given point. Examples of zero length subpaths include 'M 10,10 L 10,10', 'M 20,20 h 0', 'M 30,30 z' and 'M 40,40 c 0,0 0,0 0,0'.

And from the Implementation Notes in the Spec of SVG 1.1 (http://www.w3.org/TR/SVG11/implnote.html#PathElementImplementationNotes°):
If ‘stroke-linecap’ is set to butt and the given path segment has zero length, do not draw the linecap for that segment; however, do draw the linecap for zero-length path segments when ‘stroke-linecap’ is set to either round or square. (This allows round and square dots to be drawn on the canvas.)