Re: [svgwg] Is "M0,0L100,0ZL100,50L200,200ZL,0,200Z" 1 subpath or 3? (#866)

An in fact, even the leading "M" command could be (or should be?) optional:

all paths should behave as if there was an implicit "M0,0" prepended to it, and then "L1,2" would still be a valid path, equivalent to "M0,0L1,2" (both generating a single subpath).

Butr may be a path like "l1,2" whose first command is relative should behave as if there was a prepended relative moveto, i.e. like "m0,0l1,2": the result would be a single relative path, that would still need to be positioned.

As well all paths should have an implicit leading horizontal positive direction, as if in fact there was a "M-1,0M0.0", each moveto (absolute or relative sets a new direction if this effectively moves the current point to a different direction, otherwise the bearing direction would be undefined, caiusing path commands depending on the bearing to be non-significant and not rendered, and possibly raise some internal exception with some "debugging flags" enabled in the engine)


-- 
GitHub Notification of comment by verdy-p
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/866#issuecomment-1033219274 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 9 February 2022 01:00:18 UTC