W3C home > Mailing lists > Public > public-html@w3.org > October 2011

[Bug 14421] New: Possible error in canvas Philip test 2d.path.stroke.prune.arc

From: <bugzilla@jessica.w3.org>
Date: Tue, 11 Oct 2011 05:52:25 +0000
To: public-html@w3.org
Message-ID: <bug-14421-2495@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=14421

           Summary: Possible error in canvas Philip test
                    2d.path.stroke.prune.arc
           Product: HTML WG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: LC1 HTML Canvas 2D Context (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: benwells@chromium.org
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


This test is checking that no zero length segments are removed when using arcTo
and arc. The code for checking arc is:

ctx.beginPath();
ctx.moveTo(50, 25);
ctx.arc(50, 25, 10, 0, 0, false);
ctx.stroke();

I think this should create a line from (50, 25) to the start of the arc, which
in this case will be (60, 25): the center of the circle is (50, 25), the radius
is 10 and the start angle is 0.

I believe arc call should be changed to:
ctx.arc(40, 25, 10, 0, 0, false);

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Tuesday, 11 October 2011 05:52:30 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:28 UTC