Bug 120429
| Summary: | The end point of canvas arc is incorrect. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Dongseong Hwang <dongseong.hwang> |
| Component: | Canvas | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | ian, krit |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Dongseong Hwang
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
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ian 'Hixie' Hickson
I've updated the spec to say that WebKit's current behaviour is correct.
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23050
Dirk Schulze
Thanks for clarifying Ian.