[Webkit-unassigned] [Bug 202516] Implement 2d.path.rect so that it matches the winding rule

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 14 05:34:30 PDT 2024


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

Karl Dubost <karlcow at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|imported/w3c/web-platform-t |Implement 2d.path.rect so
                   |ests/2dcontext/path-objects |that it matches the winding
                   |/2d.path.rect.winding.html  |rule
                   |fails on Mac and iOS        |

--- Comment #3 from Karl Dubost <karlcow at apple.com> ---
>From https://html.spec.whatwg.org/multipage/canvas.html#fill-rule

The CanvasFillRule enumeration is used to select the fill rule algorithm by which to determine if a point is inside or outside a path.

The value "nonzero" value indicates the nonzero winding rule, wherein a point is considered to be outside a shape if the number of times a half-infinite straight line drawn from that point crosses the shape's path going in one direction is equal to the number of times it crosses the path going in the other direction.

The "evenodd" value indicates the even-odd rule, wherein a point is considered to be outside a shape if the number of times a half-infinite straight line drawn from that point crosses the shape's path is even.

If a point is not outside a shape, it is inside the shape.

-- 
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/20240514/110dfc0d/attachment.htm>


More information about the webkit-unassigned mailing list