Re: [svgwg] Inconsistent error handling of negative radius arcs. (#853)

Proposed Solution: For each negative radius, take the absolute value and invert the sweep-flag.

If we have `rx=-10` and `ry=auto` we would get `rx=-10, ry=-10` and make that `rx=10, ry=10` and double invert the sweep flag. Resulting in the arc error state. But, this also corrects some things like when you flip an arc horizontally or vertically where the properties tends to result in actual negative radiuses and these require flipping the sweep flag to correct them. This would get done rather automatically.

Secondly this would permit the specification of rects with scooped corners. If you said a rectangle had rx=-10 and ry=10 it would flip the sweep flag on these arcs within the rect and produce native scooped corners. I will gloss over how bizarre this would look with circles and ellipses because I wouldn't want to hurt my case, especially when just absolute value everything is likely the best and most consistent solution.

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


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

Received on Thursday, 3 June 2021 07:01:45 UTC