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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>19932</bug_id>
          
          <creation_ts>2012-11-10 16:15:18 +0000</creation_ts>
          <short_desc>Proposal: Add CanvasRenderingContext2D.fillRule</short_desc>
          <delta_ts>2013-01-03 23:38:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yury">ydelendik</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>jwal</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78175</commentid>
    <comment_count>0</comment_count>
    <who name="Yury">ydelendik</who>
    <bug_when>2012-11-10 16:15:18 +0000</bug_when>
    <thetext>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&apos;s available in &quot;... other languages/libraries ... (in alphabetical order): cairo, Direct2D, GDI, PDF, PostScript, Quartz, skia, and SVG&quot;.

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 = &apos;evenodd&apos;;
    ctx.fill();

will look much better than its replacement.

Is it expected to have something like fillRule in the spec?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80460</commentid>
    <comment_count>1</comment_count>
    <who name="James Ascroft-Leigh">jwal</who>
    <bug_when>2012-12-21 01:24:26 +0000</bug_when>
    <thetext>There seems to have been a response on this topic by Ian Hickson:

&lt;blockquote&gt;

  I&apos;ve taken note of the suggestions below in the source of the HTML5 spec, 
  but not added them to the language yet. As we approach last call for the 
  HTML5 spec, I am trying to reduce the number of new features added, so 
  that we can stabilise the document and feature set and give implementors a 
  fixed set of features to aim for.

     * Colours set by component
     * The equivalent of SVG&apos;s fill-rule
     * Line styles -- dashed and dotted lines
     * Points

&lt;/blockquote&gt;

See http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-April/019503.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80875</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-01-03 23:38:14 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7635.
Check-in comment: Introduce canvas 2d context&apos;s fillRule attribute
http://html5.org/tools/web-apps-tracker?from=7634&amp;to=7635</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>