[Webkit-unassigned] [Bug 225859] Canvas does not respect line cap behaviour for zero-length paths

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 24 12:44:13 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=225859

--- Comment #4 from Pierpaolo Follia <pfollia at gmail.com> ---
Maybe this is more accurate:

https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-linecap

At point 9:

Caps: Each point has a flat edge perpendicular to the direction of the line coming out of it. This is then augmented according to the value of style's lineCap. The "butt" value means that no additional line cap is added. The "round" value means that a semi-circle with the diameter equal to style's lineWidth width must additionally be placed on to the line coming out of each point. The "square" value means that a rectangle with the length of style's lineWidth width and the width of half style's lineWidth width, placed flat against the edge perpendicular to the direction of the line coming out of the point, must be added at each point.

Seems that the zero-length path should have the semi-circle (or half-square) added to the line coming out of each point.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210524/a9c5ecc4/attachment.htm>


More information about the webkit-unassigned mailing list