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 18014 - 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: CLOSED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML Canvas 2D Context (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: rcabanie
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
: 18011 18012 18013 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-07-18 08:27 UTC by contributor
Modified: 2012-08-21 22:18 UTC (History)
7 users (show)

See Also:


Attachments

Description contributor 2012-07-18 08:27:43 UTC
This was was cloned from bug 15225 as part of operation convergence.
Originally filed: 2011-12-16 08:16:00 +0000

================================================================================
 #0   contributor@whatwg.org                          2011-12-16 08:16:32 +0000 
--------------------------------------------------------------------------------
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
================================================================================
 #1   Ian 'Hixie' Hickson                             2012-01-28 22:05:20 +0000 
--------------------------------------------------------------------------------
What do browsers do?
================================================================================
Comment 1 Ian 'Hixie' Hickson 2012-07-18 14:56:09 UTC
*** Bug 18013 has been marked as a duplicate of this bug. ***
Comment 2 Ian 'Hixie' Hickson 2012-07-18 14:56:10 UTC
*** Bug 18012 has been marked as a duplicate of this bug. ***
Comment 3 Ian 'Hixie' Hickson 2012-07-18 14:56:12 UTC
*** Bug 18011 has been marked as a duplicate of this bug. ***
Comment 4 Erika Doyle Navara 2012-08-13 18:00:08 UTC
Moving to HTML Canvas 2D Context.
Comment 5 rcabanie 2012-08-21 20:30:19 UTC
Every browser is throwing when passing a negative value for radius.

It doesn't make much sense to draw the arc in reverse. At best you should treat a negative radius the same as positive.
Keep in mind that you can pass a radiusx and a radiusy. What would it mean if one (but not both) of them was negative?

The latest spec lets you specify the direction of the rotation which matches your request.
Comment 6 rcabanie 2012-08-21 20:48:05 UTC
Rereading the spec, rotation means something different. I will follow up.