[BZ#782670] librsvg does not correctly render linecaps of zero-length paths
Submitted by Eduard Braun
Link to original bug (#782670)
Description
Created attachment 351931 testcase showing the three types of linecaps applied to zero-width strokes
When defining a zero length path like
librsvg fails to render the linecap (it should result in a small square with 1x1 px²). "round" linecaps seem to work, though
Find attached a testcase showing the three types of linecaps applied to zero-width strokes:
- butt
- round
- square
While butt should result in no visual output, square and round should result in a visible dot or square respectively [1].
Sample renderings will also be attached for
- librsvg (fails to render square)
- Inkscape (fails to render square, too; see [2])
- Firefox (renders the testcase correctly)
[1] https://www.w3.org/TR/SVG11/implnote.html#PathElementImplementationNotes [2] https://bugs.launchpad.net/inkscape/+bug/1690959
Attachment 351931, "testcase showing the three types of linecaps applied to zero-width strokes":