<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>120429</bug_id>
          
          <creation_ts>2013-08-28 11:08:27 -0700</creation_ts>
          <short_desc>The end point of canvas arc is incorrect.</short_desc>
          <delta_ts>2014-04-03 01:37:25 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Canvas</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dongseong Hwang">dongseong.hwang</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ian</cc>
    
    <cc>krit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>922108</commentid>
    <comment_count>0</comment_count>
    <who name="Dongseong Hwang">dongseong.hwang</who>
    <bug_when>2013-08-28 11:08:27 -0700</bug_when>
    <thetext>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&apos;s circumference, measured in radians clockwise from the ellipse&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>951852</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-11-18 16:06:33 -0800</bug_when>
    <thetext>I&apos;ve updated the spec to say that WebKit&apos;s current behaviour is correct.
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23050</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>997083</commentid>
    <comment_count>2</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2014-04-03 01:37:25 -0700</bug_when>
    <thetext>Thanks for clarifying Ian.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>