Open Bug 910142 Opened 12 years ago Updated 3 years ago

<canvas>: the end point of canvas arc is incorrect.

Categories

(Core :: Graphics: Canvas2D, defect)

defect

Tracking

()

People

(Reporter: dongseong.hwang, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.14 Safari/537.36 Steps to reproduce: Canvas spec defines start point and end point of arc as follows: http://www.w3.org/TR/2dcontext2/#dom-context-2d-arc The points at startAngle and endAngle along this circle's circumference, measured in radians clockwise from the ellipse's semi-major axis, are the start and end points respectively Actual results: When endAngle-startAngle is greater than 2π, the end point is the same to the start point regardless of the end angle. Expected results: End point of arc must be consistent with end angle
Blink had the same issue and fixed in https://codereview.chromium.org/18286007/ There is a discussion about it in W3C bugzilla: https://www.w3.org/Bugs/Public/show_bug.cgi?id=23050
Component: Untriaged → Canvas: 2D
OS: Linux → All
Product: Firefox → Core
Attachment #796515 - Attachment mime type: text/plain → text/html
I think this would just take an updated implementation of ArcToBezier (gfx/2d/PathHelpers.h).
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
Hardware: x86_64 → All
I've updated the spec to say that Firefox's current behaviour is correct. https://www.w3.org/Bugs/Public/show_bug.cgi?id=23050
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: