<?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>27313</bug_id>
          
          <creation_ts>2014-11-12 12:23:18 +0000</creation_ts>
          <short_desc>It seems like this should be defined in terms of an IDL enum. If not, please clarify the relationshi [...]</short_desc>
          <delta_ts>2018-01-29 14:33:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>Compositing</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>https://html.spec.whatwg.org/#dom-context-2d-globalcompositeoperation</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>annevk</cc>
    
    <cc>cabanier</cc>
    
    <cc>cabanier</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>114836</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-11-12 12:23:18 +0000</bug_when>
    <thetext>Specification: https://html.spec.whatwg.org/multipage/scripting.html
Multipage: https://html.spec.whatwg.org/multipage/#dom-context-2d-globalcompositeoperation
Complete: https://html.spec.whatwg.org/#dom-context-2d-globalcompositeoperation
Referrer: https://html.spec.whatwg.org/multipage/

Comment:
It seems like this should be defined in terms of an IDL enum. If not, please
clarify the relationship to the referenced document as it does not define
canonical names. E.g. I believe in browsers you need to use &quot;xor&quot;, not &quot;XOR&quot;.

Posted from: 46.127.136.57 by annevk@annevk.nl
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:36.0) Gecko/20100101 Firefox/36.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114860</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-11-12 19:15:56 +0000</bug_when>
    <thetext>The spec says: &quot;These values are all case-sensitive — they must be used exactly as defined. User agents must not recognise values that are not a case-sensitive match for one of the values given in the Compositing and Blending specification.&quot;

Is there more that you need here?

Defining this as an Enum is something that could be done, but it should be done in the Compositing and Blending specification, where the keywords are defined.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114863</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-11-12 19:56:37 +0000</bug_when>
    <thetext>But that specification has the wrong casing as far as I can tell. I remember all globalCompositeOperation keywords being lowercase.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114866</commentid>
    <comment_count>3</comment_count>
    <who name="rcabanie">cabanier</who>
    <bug_when>2014-11-12 20:32:23 +0000</bug_when>
    <thetext>(In reply to Anne from comment #2)
&gt; But that specification has the wrong casing as far as I can tell. I remember
&gt; all globalCompositeOperation keywords being lowercase.

where do you see that they are not lowercase?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114867</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-11-12 20:38:52 +0000</bug_when>
    <thetext>E.g. http://dev.w3.org/fxtf/compositing-1/#porterduffcompositingoperators_xor</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114868</commentid>
    <comment_count>5</comment_count>
    <who name="rcabanie">cabanier</who>
    <bug_when>2014-11-12 20:40:31 +0000</bug_when>
    <thetext>(In reply to Anne from comment #4)
&gt; E.g. http://dev.w3.org/fxtf/compositing-1/#porterduffcompositingoperators_xor

Those are the descriptions of the algorithms. The values are described here:
http://dev.w3.org/fxtf/compositing-1/#canvascompositingandblending</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114869</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-11-12 20:45:10 +0000</bug_when>
    <thetext>If you define them in terms of CSS, should CSS escapes now work? Should they be case-insensitive rather than what Ian just said?

I don&apos;t think this works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114874</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-11-12 23:02:19 +0000</bug_when>
    <thetext>Yeah that spec should be fixed to define the API surface, not just CSS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129057</commentid>
    <comment_count>8</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2018-01-29 14:33:14 +0000</bug_when>
    <thetext>Filed https://github.com/w3c/fxtf-drafts/issues/252.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>