[Webkit-unassigned] [Bug 146997] New: [WinCairo] SVG path not rendered with all-zero dasharray
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jul 16 08:01:54 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=146997
Bug ID: 146997
Summary: [WinCairo] SVG path not rendered with all-zero
dasharray
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: Unspecified
OS: Windows 7
Status: NEW
Severity: Normal
Priority: P2
Component: SVG
Assignee: webkit-unassigned at lists.webkit.org
Reporter: hur.ims at navercorp.com
CC: zimmermann at kde.org
SVG path with "stroke-dasharray:0" style is not rendered at all.
This is because cairo_set_dash() doesn't expect all-zero dashes.
W3C SVG v1.1 spec says, "If the sum of the values is zero, then the stroke is rendered as if a value of none were specified."
So, correct rendering would be achieved if cairo_set_dash() is skipped.
Also, from the FireFox patch[1], I recognized that CanvasRenderingContext2D.setLineDash() has the same problem because it also uses the same cairo API.
Though, I couldn't find any reference about all-zero dash array in Canvas 2D Context spec, it would be better to be rendered as a solid line rather than nothing.
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1169609
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150716/558bfdea/attachment-0001.html>
More information about the webkit-unassigned
mailing list