<?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>17284</bug_id>
          
          <creation_ts>2012-06-01 12:36:07 +0000</creation_ts>
          <short_desc>The type of fillStyle/strokeStyle should probably be |(DOMString or CanvasGradient or CanvasPattern)|</short_desc>
          <delta_ts>2012-09-28 04:19:11 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML Canvas 2D Context</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#2dcontext</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="rcabanie">cabanier</assigned_to>
          <cc>cabanier</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>68506</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-06-01 12:36:07 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html
Multipage: http://www.whatwg.org/C#2dcontext
Complete: http://www.whatwg.org/c#2dcontext

Comment:
The type of fillStyle/strokeStyle should probably be |(DOMString or
CanvasGradient or CanvasPattern)|

Posted from: 91.181.38.75 by ms2ger@gmail.com
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0a1) Gecko/20120108 Firefox/12.0a1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68507</commentid>
    <comment_count>1</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2012-06-01 12:37:28 +0000</bug_when>
    <thetext>Currently the spec isn&apos;t terribly clear on what should happen for, for example, ctx.fillStyle = { valueOf: function() { return &quot;blue&quot; } }. Deferring to WebIDL would fix that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70366</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 07:22:40 +0000</bug_when>
    <thetext>This bug was cloned to create bug 17952 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72231</commentid>
    <comment_count>3</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2012-08-15 17:13:32 +0000</bug_when>
    <thetext>Filter on [Idon&apos;tcareaboutHTMLWGbugspam].</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72526</commentid>
    <comment_count>4</comment_count>
    <who name="rcabanie">cabanier</who>
    <bug_when>2012-08-22 04:11:07 +0000</bug_when>
    <thetext>The spec for fillStyle/strokeStyle states:
If the value is a string but cannot be parsed as a CSS &lt;color&gt; value, or is neither a string, a CanvasGradient, nor a CanvasPattern, then it must be ignored, and the attribute must retain its previous value.

Since you can assign any value, the IDL has to state this. 
Unless you propose to change the prose, the IDL is correct as-is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72627</commentid>
    <comment_count>5</comment_count>
    <who name="rcabanie">cabanier</who>
    <bug_when>2012-08-23 19:59:27 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: 
This is an Editor&apos;s Response to your comment. If
you are satisfied with this response, please change the state of
this bug to CLOSED. If you have additional information and would
like the Editor to reconsider, please reopen this bug. If you would
like to escalate the issue to the full HTML Working Group, please
add the TrackerRequest keyword to this bug, and suggest title and
text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this
document:
       http://dev.w3.org/html5/decision-policy/decision-policy.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74720</commentid>
    <comment_count>6</comment_count>
    <who name="rcabanie">cabanier</who>
    <bug_when>2012-09-28 04:19:11 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; EDITOR&apos;S RESPONSE: 
&gt; This is an Editor&apos;s Response to your comment. If
&gt; you are satisfied with this response, please change the state of
&gt; this bug to CLOSED. If you have additional information and would
&gt; like the Editor to reconsider, please reopen this bug. If you would
&gt; like to escalate the issue to the full HTML Working Group, please
&gt; add the TrackerRequest keyword to this bug, and suggest title and
&gt; text for the Tracker Issue; or you may create a Tracker Issue
&gt; yourself, if you are able to do so. For more details, see this
&gt; document:
&gt;        http://dev.w3.org/html5/decision-policy/decision-policy.html

After further testing, the new IDL matches some browsers.
I will integrate change the version of the W3C spec to reflect the correct behavior.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>