After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 782670 - librsvg does not correctly render linecaps of zero-length paths
librsvg does not correctly render linecaps of zero-length paths
Status: RESOLVED OBSOLETE
Product: librsvg
Classification: Core
Component: general
unspecified
Other Windows
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2017-05-15 23:56 UTC by Eduard Braun
Modified: 2017-12-13 18:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
testcase showing the three types of linecaps applied to zero-width strokes (339 bytes, image/svg+xml)
2017-05-15 23:56 UTC, Eduard Braun
Details
librsvg rendering (2.04 KB, image/png)
2017-05-15 23:56 UTC, Eduard Braun
Details
Inkscape rendering (2.38 KB, image/png)
2017-05-15 23:56 UTC, Eduard Braun
Details
Firefox rendering (2.38 KB, image/png)
2017-05-15 23:57 UTC, Eduard Braun
Details
inkscape rendering (2.05 KB, image/png)
2017-05-15 23:57 UTC, Eduard Braun
Details

Description Eduard Braun 2017-05-15 23:56:14 UTC
Created attachment 351931 [details]
testcase showing the three types of linecaps applied to zero-width strokes

When defining a zero length path like

<path d="m0 0 0 0" stroke="black" stroke-linecap="square" />

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
Comment 1 Eduard Braun 2017-05-15 23:56:44 UTC
Created attachment 351932 [details]
librsvg rendering
Comment 2 Eduard Braun 2017-05-15 23:56:56 UTC
Created attachment 351933 [details]
Inkscape rendering
Comment 3 Eduard Braun 2017-05-15 23:57:15 UTC
Created attachment 351934 [details]
Firefox rendering
Comment 4 Eduard Braun 2017-05-15 23:57:45 UTC
Created attachment 351935 [details]
inkscape rendering
Comment 5 GNOME Infrastructure Team 2017-12-13 18:27:41 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/librsvg/issues/165.