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

It's three.

1. M0,0L100,0Z
2. (M0,0) L100,50L200,200Z
3. (M0,0) L,0,200Z

> So did the Z start that subpath or is it still in the subpath that started with the initial moveto.

Z just closes a sub-path. It doesn't start a new one.

> Does a subsequent closepath point to the previous closepath's destination or the previous moveto's destination.

If the subsequent subpath had no M, then both of those locations would be the same.

> If a "closepath" is followed immediately by any other command, then the next subpath must start at the same initial point as the current subpath.

Is your confusion around the use of "current" in the above sentence? Remember the Z does *not* start a new path. So "current" refers to the first sub-path still.



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


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

Received on Monday, 20 September 2021 02:38:40 UTC