[html5] r8078 - [e] (0) Defer to Rik's spec for globalCompositeOperation Affected topics: Canvas [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Jul 22 18:56:32 PDT 2013


Author: ianh
Date: 2013-07-22 18:56:31 -0700 (Mon, 22 Jul 2013)
New Revision: 8078

Modified:
   complete.html
   index
   source
Log:
[e] (0) Defer to Rik's spec for globalCompositeOperation
Affected topics: Canvas, HTML

Modified: complete.html
===================================================================
--- complete.html	2013-07-22 18:47:06 UTC (rev 8077)
+++ complete.html	2013-07-23 01:56:31 UTC (rev 8078)
@@ -256,7 +256,7 @@
 
   <header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 22 July 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 23 July 2013</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -38599,7 +38599,8 @@
 
    <dd>
 
-    <p>Returns the current composition operation, from the list below.</p>
+    <p>Returns the current composition operation, from the values defined in the Compositing and
+    Blending specification. <a href=#refsCOMPOSITE>[COMPOSITE]</a>.</p>
 
     <p>Can be set, to change the composition operation. Unknown values
     are ignored.</p>
@@ -38623,113 +38624,20 @@
   initially have the value 1.0.</p>
 
   <p>The <dfn id=dom-context-2d-globalcompositeoperation title=dom-context-2d-globalCompositeOperation><code>globalCompositeOperation</code></dfn>
-  attribute sets how shapes and images are drawn onto the <a href=#scratch-bitmap>scratch bitmap</a>, once they
+  attribute sets the current composition operator, which controls how shapes and images are drawn
+  onto the <a href=#scratch-bitmap>scratch bitmap</a>, once they
   have had <code title=dom-context-2d-globalAlpha><a href=#dom-context-2d-globalalpha>globalAlpha</a></code> and the current
-  transformation matrix applied. It must be set to a value from the following list. In the
-  descriptions below, the source image, <var title="">A</var>, is the shape or image being rendered,
-  and the destination image, <var title="">B</var>, is the current state of the <a href=#scratch-bitmap>scratch
-  bitmap</a>.</p>
+  transformation matrix applied. The possible values are those defined in the Compositing and
+  Blending specification. <a href=#refsCOMPOSITE>[COMPOSITE]</a></p>
 
-  </div>
-
-  <dl><dt><dfn id=gcop-source-atop title=gcop-source-atop><code>source-atop</code></dfn></dt>
-
-   <dd><var title="">A</var> atop <var title="">B</var>. <span class=note>Display the
-   source image wherever both images are opaque. Display the
-   destination image wherever the destination image is opaque but the
-   source image is transparent. Display transparency elsewhere.</span></dd>
-
-   <dt><dfn id=gcop-source-in title=gcop-source-in><code>source-in</code></dfn></dt>
-
-   <dd><var title="">A</var> in <var title="">B</var>. <span class=note>Display the
-   source image wherever both the source image and destination image
-   are opaque. Display transparency elsewhere.</span></dd>
-
-   <dt><dfn id=gcop-source-out title=gcop-source-out><code>source-out</code></dfn></dt>
-
-   <dd><var title="">A</var> out <var title="">B</var>. <span class=note>Display the
-   source image wherever the source image is opaque and the
-   destination image is transparent. Display transparency
-   elsewhere.</span></dd>
-
-   <dt><dfn id=gcop-source-over title=gcop-source-over><code>source-over</code></dfn> (default)</dt>
-
-   <dd><var title="">A</var> over <var title="">B</var>. <span class=note>Display the
-   source image wherever the source image is opaque. Display the
-   destination image elsewhere.</span></dd>
-
-
-   <dt><dfn id=gcop-destination-atop title=gcop-destination-atop><code>destination-atop</code></dfn></dt>
-
-   <dd><var title="">B</var> atop <var title="">A</var>. <span class=note>Same as <code title=gcop-source-atop><a href=#gcop-source-atop>source-atop</a></code> but using the
-   destination image instead of the source image and vice versa.</span></dd>
-
-   <dt><dfn id=gcop-destination-in title=gcop-destination-in><code>destination-in</code></dfn></dt>
-
-   <dd><var title="">B</var> in <var title="">A</var>. <span class=note>Same as <code title=gcop-source-in><a href=#gcop-source-in>source-in</a></code> but using the destination
-   image instead of the source image and vice versa.</span></dd>
-
-   <dt><dfn id=gcop-destination-out title=gcop-destination-out><code>destination-out</code></dfn></dt>
-
-   <dd><var title="">B</var> out <var title="">A</var>. <span class=note>Same as <code title=gcop-source-out><a href=#gcop-source-out>source-out</a></code> but using the destination
-   image instead of the source image and vice versa.</span></dd>
-
-   <dt><dfn id=gcop-destination-over title=gcop-destination-over><code>destination-over</code></dfn></dt>
-
-   <dd><var title="">B</var> over <var title="">A</var>. <span class=note>Same as <code title=gcop-source-over><a href=#gcop-source-over>source-over</a></code> but using the
-   destination image instead of the source image and vice versa.</span></dd>
-
-
-<!-- no clear definition of this operator (doesn't correspond to a PorterDuff operator)
-   <dt><dfn title="gcop-darker"><code>darker</code></dfn></dt>
-
-   <dd><span class="note">Display the sum of the source image and destination image,
-   with color values approaching 0 as a limit.</span></dd>
--->
-
-   <dt><dfn id=gcop-lighter title=gcop-lighter><code>lighter</code></dfn></dt>
-
-   <dd><var title="">A</var> plus <var title="">B</var>. <span class=note>Display the
-   sum of the source image and destination image, with color values
-   approaching 255 (100%) as a limit.</span></dd>
-
-
-   <dt><dfn id=gcop-copy title=gcop-copy><code>copy</code></dfn></dt>
-
-   <dd><var title="">A</var> (<var title="">B</var> is
-   ignored). <span class=note>Display the source image instead of the destination
-   image.</span></dd>
-
-
-   <dt><dfn id=gcop-xor title=gcop-xor><code>xor</code></dfn></dt>
-
-   <dd><var title="">A</var> xor <var title="">B</var>. <span class=note>Exclusive OR
-   of the source image and destination image.</span></dd>
-
-
-   <dt class=impl><code><var title="">vendorName</var>-<var title="">operationName</var></code></dt>
-
-   <dd class=impl>Vendor-specific extensions to the list of
-   composition operators should use this syntax.</dd>
-
-  </dl><div class=impl>
-
-  <p>The operators in the above list must be treated as described by
-  the Porter-Duff operator given at the start of their description
-  (e.g. <var title="">A</var> over <var title="">B</var>). They are to
-  be applied as part of the <a href=#drawing-model>drawing model</a>, at which point the
-  <a href=#clipping-region>clipping region</a> is also applied. (Without a clipping
-  region, these operators act on the whole bitmap with every
-  operation.) <a href=#refsPORTERDUFF>[PORTERDUFF]</a></p>
-
   <p>These values are all case-sensitive — they must be used
-  exactly as shown. User agents must not recognize values that are not
+  exactly as defined. User agents must not recognize values that are not
   a <a href=#case-sensitive>case-sensitive</a> match for one of the values given
-  above.</p>
+  in the Compositing and Blending specification. <a href=#refsCOMPOSITE>[COMPOSITE]</a></p>
 
   <p>On setting, if the user agent does not recognize the specified
   value, it must be ignored, leaving the value of <code title=dom-context-2d-globalCompositeOperation><a href=#dom-context-2d-globalcompositeoperation>globalCompositeOperation</a></code>
-  unaffected.</p>
+  unaffected. Otherwise, the attribute must be set to the given new value.</p>
 
   <p>When the context is created, the <code title=dom-context-2d-globalCompositeOperation><a href=#dom-context-2d-globalcompositeoperation>globalCompositeOperation</a></code>
   attribute must initially have the value
@@ -38896,7 +38804,7 @@
 
   </ol></div>
 
-  <p>If the current composition operation is <code title=gcop-copy><a href=#gcop-copy>copy</a></code>, shadows effectively won't render
+  <p>If the current composition operation is <code title=gcop-copy>copy</code>, shadows effectively won't render
   (since the shape will overwrite the shadow).</p>
 
 
@@ -103382,6 +103290,9 @@
    <dt id=refsCLDR>[CLDR]</dt>
    <dd><cite><a href=http://cldr.unicode.org/>Unicode Common Locale Data Repository</a></cite>. Unicode.</dd>
 
+   <dt id=refsCOMPOSITE>[COMPOSITE]</dt>
+   <dd><cite><a href=http://dev.w3.org/fxtf/compositing/>Compositing and Blending</a></cite>. R. Cabanier, N. Andronikos. W3C.</dd>
+
    <dt id=refsCOMPUTABLE>[COMPUTABLE]</dt>
    <dd>(Non-normative) <cite><a href=http://www.turingarchive.org/browse.php/B/12>On computable numbers, with an application to the Entscheidungsproblem</a></cite>, A. Turing. In <cite>Proceedings of the London Mathematical Society</cite>, series 2, volume 42, pages 230-265. London Mathematical Society, 1937.</dd>
 
@@ -103570,9 +103481,6 @@
    <dt id=refsPOINTERLOCK>[POINTERLOCK]</dt>
    <dd><cite><a href=http://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html>Pointer Lock</a></cite>, V. Scheib. W3C.</dd>
 
-   <dt id=refsPORTERDUFF>[PORTERDUFF]</dt>
-   <dd><cite><a href=http://keithp.com/~keithp/porterduff/p253-porter.pdf>Compositing Digital Images</a></cite>, T. Porter, T. Duff. In <cite>Computer graphics</cite>, volume 18, number 3, pp. 253-259. ACM Press, July 1984.</dd>
-
    <dt id=refsPPUTF8>[PPUTF8]</dt>
    <dd>(Non-normative) <cite><a href=http://www.sw.it.aoyama.ac.jp/2012/pub/IUC11-UTF-8.pdf>The Properties and Promises <!-- Promizes (sic) --> of UTF-8</a></cite>, M. Dürst. University of Zürich. In <cite>Proceedings of the 11th International Unicode Conference</cite>.</dd>
 

Modified: index
===================================================================
--- index	2013-07-22 18:47:06 UTC (rev 8077)
+++ index	2013-07-23 01:56:31 UTC (rev 8078)
@@ -256,7 +256,7 @@
 
   <header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 22 July 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 23 July 2013</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -38599,7 +38599,8 @@
 
    <dd>
 
-    <p>Returns the current composition operation, from the list below.</p>
+    <p>Returns the current composition operation, from the values defined in the Compositing and
+    Blending specification. <a href=#refsCOMPOSITE>[COMPOSITE]</a>.</p>
 
     <p>Can be set, to change the composition operation. Unknown values
     are ignored.</p>
@@ -38623,113 +38624,20 @@
   initially have the value 1.0.</p>
 
   <p>The <dfn id=dom-context-2d-globalcompositeoperation title=dom-context-2d-globalCompositeOperation><code>globalCompositeOperation</code></dfn>
-  attribute sets how shapes and images are drawn onto the <a href=#scratch-bitmap>scratch bitmap</a>, once they
+  attribute sets the current composition operator, which controls how shapes and images are drawn
+  onto the <a href=#scratch-bitmap>scratch bitmap</a>, once they
   have had <code title=dom-context-2d-globalAlpha><a href=#dom-context-2d-globalalpha>globalAlpha</a></code> and the current
-  transformation matrix applied. It must be set to a value from the following list. In the
-  descriptions below, the source image, <var title="">A</var>, is the shape or image being rendered,
-  and the destination image, <var title="">B</var>, is the current state of the <a href=#scratch-bitmap>scratch
-  bitmap</a>.</p>
+  transformation matrix applied. The possible values are those defined in the Compositing and
+  Blending specification. <a href=#refsCOMPOSITE>[COMPOSITE]</a></p>
 
-  </div>
-
-  <dl><dt><dfn id=gcop-source-atop title=gcop-source-atop><code>source-atop</code></dfn></dt>
-
-   <dd><var title="">A</var> atop <var title="">B</var>. <span class=note>Display the
-   source image wherever both images are opaque. Display the
-   destination image wherever the destination image is opaque but the
-   source image is transparent. Display transparency elsewhere.</span></dd>
-
-   <dt><dfn id=gcop-source-in title=gcop-source-in><code>source-in</code></dfn></dt>
-
-   <dd><var title="">A</var> in <var title="">B</var>. <span class=note>Display the
-   source image wherever both the source image and destination image
-   are opaque. Display transparency elsewhere.</span></dd>
-
-   <dt><dfn id=gcop-source-out title=gcop-source-out><code>source-out</code></dfn></dt>
-
-   <dd><var title="">A</var> out <var title="">B</var>. <span class=note>Display the
-   source image wherever the source image is opaque and the
-   destination image is transparent. Display transparency
-   elsewhere.</span></dd>
-
-   <dt><dfn id=gcop-source-over title=gcop-source-over><code>source-over</code></dfn> (default)</dt>
-
-   <dd><var title="">A</var> over <var title="">B</var>. <span class=note>Display the
-   source image wherever the source image is opaque. Display the
-   destination image elsewhere.</span></dd>
-
-
-   <dt><dfn id=gcop-destination-atop title=gcop-destination-atop><code>destination-atop</code></dfn></dt>
-
-   <dd><var title="">B</var> atop <var title="">A</var>. <span class=note>Same as <code title=gcop-source-atop><a href=#gcop-source-atop>source-atop</a></code> but using the
-   destination image instead of the source image and vice versa.</span></dd>
-
-   <dt><dfn id=gcop-destination-in title=gcop-destination-in><code>destination-in</code></dfn></dt>
-
-   <dd><var title="">B</var> in <var title="">A</var>. <span class=note>Same as <code title=gcop-source-in><a href=#gcop-source-in>source-in</a></code> but using the destination
-   image instead of the source image and vice versa.</span></dd>
-
-   <dt><dfn id=gcop-destination-out title=gcop-destination-out><code>destination-out</code></dfn></dt>
-
-   <dd><var title="">B</var> out <var title="">A</var>. <span class=note>Same as <code title=gcop-source-out><a href=#gcop-source-out>source-out</a></code> but using the destination
-   image instead of the source image and vice versa.</span></dd>
-
-   <dt><dfn id=gcop-destination-over title=gcop-destination-over><code>destination-over</code></dfn></dt>
-
-   <dd><var title="">B</var> over <var title="">A</var>. <span class=note>Same as <code title=gcop-source-over><a href=#gcop-source-over>source-over</a></code> but using the
-   destination image instead of the source image and vice versa.</span></dd>
-
-
-<!-- no clear definition of this operator (doesn't correspond to a PorterDuff operator)
-   <dt><dfn title="gcop-darker"><code>darker</code></dfn></dt>
-
-   <dd><span class="note">Display the sum of the source image and destination image,
-   with color values approaching 0 as a limit.</span></dd>
--->
-
-   <dt><dfn id=gcop-lighter title=gcop-lighter><code>lighter</code></dfn></dt>
-
-   <dd><var title="">A</var> plus <var title="">B</var>. <span class=note>Display the
-   sum of the source image and destination image, with color values
-   approaching 255 (100%) as a limit.</span></dd>
-
-
-   <dt><dfn id=gcop-copy title=gcop-copy><code>copy</code></dfn></dt>
-
-   <dd><var title="">A</var> (<var title="">B</var> is
-   ignored). <span class=note>Display the source image instead of the destination
-   image.</span></dd>
-
-
-   <dt><dfn id=gcop-xor title=gcop-xor><code>xor</code></dfn></dt>
-
-   <dd><var title="">A</var> xor <var title="">B</var>. <span class=note>Exclusive OR
-   of the source image and destination image.</span></dd>
-
-
-   <dt class=impl><code><var title="">vendorName</var>-<var title="">operationName</var></code></dt>
-
-   <dd class=impl>Vendor-specific extensions to the list of
-   composition operators should use this syntax.</dd>
-
-  </dl><div class=impl>
-
-  <p>The operators in the above list must be treated as described by
-  the Porter-Duff operator given at the start of their description
-  (e.g. <var title="">A</var> over <var title="">B</var>). They are to
-  be applied as part of the <a href=#drawing-model>drawing model</a>, at which point the
-  <a href=#clipping-region>clipping region</a> is also applied. (Without a clipping
-  region, these operators act on the whole bitmap with every
-  operation.) <a href=#refsPORTERDUFF>[PORTERDUFF]</a></p>
-
   <p>These values are all case-sensitive — they must be used
-  exactly as shown. User agents must not recognize values that are not
+  exactly as defined. User agents must not recognize values that are not
   a <a href=#case-sensitive>case-sensitive</a> match for one of the values given
-  above.</p>
+  in the Compositing and Blending specification. <a href=#refsCOMPOSITE>[COMPOSITE]</a></p>
 
   <p>On setting, if the user agent does not recognize the specified
   value, it must be ignored, leaving the value of <code title=dom-context-2d-globalCompositeOperation><a href=#dom-context-2d-globalcompositeoperation>globalCompositeOperation</a></code>
-  unaffected.</p>
+  unaffected. Otherwise, the attribute must be set to the given new value.</p>
 
   <p>When the context is created, the <code title=dom-context-2d-globalCompositeOperation><a href=#dom-context-2d-globalcompositeoperation>globalCompositeOperation</a></code>
   attribute must initially have the value
@@ -38896,7 +38804,7 @@
 
   </ol></div>
 
-  <p>If the current composition operation is <code title=gcop-copy><a href=#gcop-copy>copy</a></code>, shadows effectively won't render
+  <p>If the current composition operation is <code title=gcop-copy>copy</code>, shadows effectively won't render
   (since the shape will overwrite the shadow).</p>
 
 
@@ -103382,6 +103290,9 @@
    <dt id=refsCLDR>[CLDR]</dt>
    <dd><cite><a href=http://cldr.unicode.org/>Unicode Common Locale Data Repository</a></cite>. Unicode.</dd>
 
+   <dt id=refsCOMPOSITE>[COMPOSITE]</dt>
+   <dd><cite><a href=http://dev.w3.org/fxtf/compositing/>Compositing and Blending</a></cite>. R. Cabanier, N. Andronikos. W3C.</dd>
+
    <dt id=refsCOMPUTABLE>[COMPUTABLE]</dt>
    <dd>(Non-normative) <cite><a href=http://www.turingarchive.org/browse.php/B/12>On computable numbers, with an application to the Entscheidungsproblem</a></cite>, A. Turing. In <cite>Proceedings of the London Mathematical Society</cite>, series 2, volume 42, pages 230-265. London Mathematical Society, 1937.</dd>
 
@@ -103570,9 +103481,6 @@
    <dt id=refsPOINTERLOCK>[POINTERLOCK]</dt>
    <dd><cite><a href=http://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html>Pointer Lock</a></cite>, V. Scheib. W3C.</dd>
 
-   <dt id=refsPORTERDUFF>[PORTERDUFF]</dt>
-   <dd><cite><a href=http://keithp.com/~keithp/porterduff/p253-porter.pdf>Compositing Digital Images</a></cite>, T. Porter, T. Duff. In <cite>Computer graphics</cite>, volume 18, number 3, pp. 253-259. ACM Press, July 1984.</dd>
-
    <dt id=refsPPUTF8>[PPUTF8]</dt>
    <dd>(Non-normative) <cite><a href=http://www.sw.it.aoyama.ac.jp/2012/pub/IUC11-UTF-8.pdf>The Properties and Promises <!-- Promizes (sic) --> of UTF-8</a></cite>, M. Dürst. University of Zürich. In <cite>Proceedings of the 11th International Unicode Conference</cite>.</dd>
 

Modified: source
===================================================================
--- source	2013-07-22 18:47:06 UTC (rev 8077)
+++ source	2013-07-23 01:56:31 UTC (rev 8078)
@@ -42249,7 +42249,8 @@
 
    <dd>
 
-    <p>Returns the current composition operation, from the list below.</p>
+    <p>Returns the current composition operation, from the values defined in the Compositing and
+    Blending specification. <a href="#refsCOMPOSITE">[COMPOSITE]</a>.</p>
 
     <p>Can be set, to change the composition operation. Unknown values
     are ignored.</p>
@@ -42278,122 +42279,21 @@
 
   <p>The <dfn
   title="dom-context-2d-globalCompositeOperation"><code>globalCompositeOperation</code></dfn>
-  attribute sets how shapes and images are drawn onto the <span>scratch bitmap</span>, once they
+  attribute sets the current composition operator, which controls how shapes and images are drawn
+  onto the <span>scratch bitmap</span>, once they
   have had <code title="dom-context-2d-globalAlpha">globalAlpha</code> and the current
-  transformation matrix applied. It must be set to a value from the following list. In the
-  descriptions below, the source image, <var title="">A</var>, is the shape or image being rendered,
-  and the destination image, <var title="">B</var>, is the current state of the <span>scratch
-  bitmap</span>.</p>
+  transformation matrix applied. The possible values are those defined in the Compositing and
+  Blending specification. <a href="#refsCOMPOSITE">[COMPOSITE]</a></p>
 
-  </div>
-
-  <dl>
-
-   <dt><dfn title="gcop-source-atop"><code>source-atop</code></dfn></dt>
-
-   <dd><var title="">A</var> atop <var title="">B</var>. <span class="note">Display the
-   source image wherever both images are opaque. Display the
-   destination image wherever the destination image is opaque but the
-   source image is transparent. Display transparency elsewhere.</span></dd>
-
-   <dt><dfn title="gcop-source-in"><code>source-in</code></dfn></dt>
-
-   <dd><var title="">A</var> in <var title="">B</var>. <span class="note">Display the
-   source image wherever both the source image and destination image
-   are opaque. Display transparency elsewhere.</span></dd>
-
-   <dt><dfn title="gcop-source-out"><code>source-out</code></dfn></dt>
-
-   <dd><var title="">A</var> out <var title="">B</var>. <span class="note">Display the
-   source image wherever the source image is opaque and the
-   destination image is transparent. Display transparency
-   elsewhere.</span></dd>
-
-   <dt><dfn title="gcop-source-over"><code>source-over</code></dfn> (default)</dt>
-
-   <dd><var title="">A</var> over <var title="">B</var>. <span class="note">Display the
-   source image wherever the source image is opaque. Display the
-   destination image elsewhere.</span></dd>
-
-
-   <dt><dfn title="gcop-destination-atop"><code>destination-atop</code></dfn></dt>
-
-   <dd><var title="">B</var> atop <var title="">A</var>. <span class="note">Same as <code
-   title="gcop-source-atop">source-atop</code> but using the
-   destination image instead of the source image and vice versa.</span></dd>
-
-   <dt><dfn title="gcop-destination-in"><code>destination-in</code></dfn></dt>
-
-   <dd><var title="">B</var> in <var title="">A</var>. <span class="note">Same as <code
-   title="gcop-source-in">source-in</code> but using the destination
-   image instead of the source image and vice versa.</span></dd>
-
-   <dt><dfn title="gcop-destination-out"><code>destination-out</code></dfn></dt>
-
-   <dd><var title="">B</var> out <var title="">A</var>. <span class="note">Same as <code
-   title="gcop-source-out">source-out</code> but using the destination
-   image instead of the source image and vice versa.</span></dd>
-
-   <dt><dfn title="gcop-destination-over"><code>destination-over</code></dfn></dt>
-
-   <dd><var title="">B</var> over <var title="">A</var>. <span class="note">Same as <code
-   title="gcop-source-over">source-over</code> but using the
-   destination image instead of the source image and vice versa.</span></dd>
-
-
-<!-- no clear definition of this operator (doesn't correspond to a PorterDuff operator)
-   <dt><dfn title="gcop-darker"><code>darker</code></dfn></dt>
-
-   <dd><span class="note">Display the sum of the source image and destination image,
-   with color values approaching 0 as a limit.</span></dd>
--->
-
-   <dt><dfn title="gcop-lighter"><code>lighter</code></dfn></dt>
-
-   <dd><var title="">A</var> plus <var title="">B</var>. <span class="note">Display the
-   sum of the source image and destination image, with color values
-   approaching 255 (100%) as a limit.</span></dd>
-
-
-   <dt><dfn title="gcop-copy"><code>copy</code></dfn></dt>
-
-   <dd><var title="">A</var> (<var title="">B</var> is
-   ignored). <span class="note">Display the source image instead of the destination
-   image.</span></dd>
-
-
-   <dt><dfn title="gcop-xor"><code>xor</code></dfn></dt>
-
-   <dd><var title="">A</var> xor <var title="">B</var>. <span class="note">Exclusive OR
-   of the source image and destination image.</span></dd>
-
-
-   <dt class="impl"><code><var title="">vendorName</var>-<var title="">operationName</var></code></dt>
-
-   <dd class="impl">Vendor-specific extensions to the list of
-   composition operators should use this syntax.</dd>
-
-  </dl>
-
-  <div class="impl">
-
-  <p>The operators in the above list must be treated as described by
-  the Porter-Duff operator given at the start of their description
-  (e.g. <var title="">A</var> over <var title="">B</var>). They are to
-  be applied as part of the <span>drawing model</span>, at which point the
-  <span>clipping region</span> is also applied. (Without a clipping
-  region, these operators act on the whole bitmap with every
-  operation.) <a href="#refsPORTERDUFF">[PORTERDUFF]</a></p>
-
   <p>These values are all case-sensitive — they must be used
-  exactly as shown. User agents must not recognize values that are not
+  exactly as defined. User agents must not recognize values that are not
   a <span>case-sensitive</span> match for one of the values given
-  above.</p>
+  in the Compositing and Blending specification. <a href="#refsCOMPOSITE">[COMPOSITE]</a></p>
 
   <p>On setting, if the user agent does not recognize the specified
   value, it must be ignored, leaving the value of <code
   title="dom-context-2d-globalCompositeOperation">globalCompositeOperation</code>
-  unaffected.</p>
+  unaffected. Otherwise, the attribute must be set to the given new value.</p>
 
   <p>When the context is created, the <code
   title="dom-context-2d-globalCompositeOperation">globalCompositeOperation</code>
@@ -115843,6 +115743,9 @@
    <dt id="refsCLDR">[CLDR]</dt>
    <dd><cite><a href="http://cldr.unicode.org/">Unicode Common Locale Data Repository</a></cite>. Unicode.</dd>
 
+   <dt id="refsCOMPOSITE">[COMPOSITE]</dt>
+   <dd><cite><a href="http://dev.w3.org/fxtf/compositing/">Compositing and Blending</a></cite>. R. Cabanier, N. Andronikos. W3C.</dd>
+
    <dt id="refsCOMPUTABLE">[COMPUTABLE]</dt>
    <dd>(Non-normative) <cite><a href="http://www.turingarchive.org/browse.php/B/12">On computable numbers, with an application to the Entscheidungsproblem</a></cite>, A. Turing. In <cite>Proceedings of the London Mathematical Society</cite>, series 2, volume 42, pages 230-265. London Mathematical Society, 1937.</dd>
 




More information about the Commit-Watchers mailing list