W3C home > Mailing lists > Public > public-html@w3.org > November 2012

[Bug 19932] New: Proposal: Add CanvasRenderingContext2D.fillRule

From: <bugzilla@jessica.w3.org>
Date: Sat, 10 Nov 2012 16:15:18 +0000
To: public-html@w3.org
Message-ID: <bug-19932-2495@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=19932

          Priority: P2
            Bug ID: 19932
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org
          Assignee: jaymunro@microsoft.com
           Summary: Proposal: Add CanvasRenderingContext2D.fillRule
        QA Contact: public-html-bugzilla@w3.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: ydelendik@mozilla.com
          Hardware: All
            Status: NEW
           Version: unspecified
         Component: HTML Canvas 2D Context
           Product: HTML WG

I could not find any response or actions to the:

* http://lists.w3.org/Archives/Public/public-whatwg-archive/2011Jun/0123.html
* http://lists.w3.org/Archives/Public/public-whatwg-archive/2007May/0338.html

While working on pdf.js and shumway projects I noticed that even-odd fill rule
is used by default in PDF and Flash formats. Also, it's available in "... other
languages/libraries ... (in alphabetical order): cairo, Direct2D, GDI, PDF,
PostScript, Quartz, skia, and SVG".

The implementation/support/simulation this functionality without canvas
fillRule only using available 2D context functions will not look pretty or
intuitive, e.g. something like:

    ctx.rect(10, 10, 100, 40);
    ctx.rect(15, 15, 90, 30);
    ctx.fillRule = 'evenodd';
    ctx.fill();

will look much better than its replacement.

Is it expected to have something like fillRule in the spec?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Saturday, 10 November 2012 16:15:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 November 2012 16:15:19 GMT