This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15225 - If an arc is given a negative radius couldn't the result of that just flip or invert the arc? It would be better than throwing an error, and what I'd expect to happen in that case.
Summary: If an arc is given a negative radius couldn't the result of that just flip or...
Status: RESOLVED NEEDSINFO
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-16 08:16 UTC by contributor
Modified: 2012-09-19 19:34 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2011-12-16 08:16:32 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html
Multipage: http://www.whatwg.org/C#complex-shapes-(paths)
Complete: http://www.whatwg.org/c#complex-shapes-(paths)

Comment:
If an arc is given a negative radius couldn't the result of that just flip or
invert the arc? It would be better than throwing an error, and what I'd expect
to happen in that case.

Posted from: 98.217.69.190 by jaredwilli@gmail.com
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2
Comment 1 Ian 'Hixie' Hickson 2012-01-28 22:05:20 UTC
What do browsers do?
Comment 2 contributor 2012-07-18 08:27:46 UTC
This bug was cloned to create bug 18014 as part of operation convergence.
Comment 3 Ian 'Hixie' Hickson 2012-09-19 19:34:06 UTC
I'm going to punt on this for now since browsers are implementing this consistently. I would be interested in seeing examples where you run into negative radii, to see what the best thing to do in those cases would be — I could imagine cases where it's better to take the magnitude, some where it's better to not draw anything, some where it's better to draw a single dot, some where it's better to invert the arc, and I would love to know which cases actually come up in reality.