[html5] r5389 - [giow] (1) Neuter 'currentColor' for addColorStop(), so that we don't have to tr [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Aug 27 21:42:28 PDT 2010


Author: ianh
Date: 2010-08-27 21:42:26 -0700 (Fri, 27 Aug 2010)
New Revision: 5389

Modified:
   complete.html
   index
   source
Log:
[giow] (1) Neuter 'currentColor' for addColorStop(), so that we don't have to track around which <canvas> created which CanvasGradient all the time.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10023

Modified: complete.html
===================================================================
--- complete.html	2010-08-28 04:26:51 UTC (rev 5388)
+++ complete.html	2010-08-28 04:42:26 UTC (rev 5389)
@@ -30319,6 +30319,19 @@
   computed value of the <code title="">currentColor</code> keyword is
   fully opaque black. <a href=#refsCSSCOLOR>[CSSCOLOR]</a></p>
 
+  <p>In the case of <code title=dom-canvasgradient-addColorStop><a href=#dom-canvasgradient-addcolorstop>addColorStop()</a></code> on
+  <code><a href=#canvasgradient>CanvasGradient</a></code>, the "computed value of the 'color'
+  property" for the purposes of determining the computed value of the
+  <code title="">currentColor</code> keyword is always fully opaque
+  black (there is no associated element). <a href=#refsCSSCOLOR>[CSSCOLOR]</a></p>
+
+  <p class=note>This is because <code><a href=#canvasgradient>CanvasGradient</a></code> objects
+  are <code><a href=#the-canvas-element>canvas</a></code>-neutral — a
+  <code><a href=#canvasgradient>CanvasGradient</a></code> object created by one
+  <code><a href=#the-canvas-element>canvas</a></code> can be used by another, and there is therefore
+  no way to know which is the "element in question" at the time that
+  the color is specified.</p>
+
   </div>
 
 

Modified: index
===================================================================
--- index	2010-08-28 04:26:51 UTC (rev 5388)
+++ index	2010-08-28 04:42:26 UTC (rev 5389)
@@ -30244,6 +30244,19 @@
   computed value of the <code title="">currentColor</code> keyword is
   fully opaque black. <a href=#refsCSSCOLOR>[CSSCOLOR]</a></p>
 
+  <p>In the case of <code title=dom-canvasgradient-addColorStop><a href=#dom-canvasgradient-addcolorstop>addColorStop()</a></code> on
+  <code><a href=#canvasgradient>CanvasGradient</a></code>, the "computed value of the 'color'
+  property" for the purposes of determining the computed value of the
+  <code title="">currentColor</code> keyword is always fully opaque
+  black (there is no associated element). <a href=#refsCSSCOLOR>[CSSCOLOR]</a></p>
+
+  <p class=note>This is because <code><a href=#canvasgradient>CanvasGradient</a></code> objects
+  are <code><a href=#the-canvas-element>canvas</a></code>-neutral — a
+  <code><a href=#canvasgradient>CanvasGradient</a></code> object created by one
+  <code><a href=#the-canvas-element>canvas</a></code> can be used by another, and there is therefore
+  no way to know which is the "element in question" at the time that
+  the color is specified.</p>
+
   </div>
 
 

Modified: source
===================================================================
--- source	2010-08-28 04:26:51 UTC (rev 5388)
+++ source	2010-08-28 04:42:26 UTC (rev 5389)
@@ -33172,6 +33172,21 @@
   computed value of the <code title="">currentColor</code> keyword is
   fully opaque black. <a href="#refsCSSCOLOR">[CSSCOLOR]</a></p>
 
+  <p>In the case of <code
+  title="dom-canvasgradient-addColorStop">addColorStop()</code> on
+  <code>CanvasGradient</code>, the "computed value of the 'color'
+  property" for the purposes of determining the computed value of the
+  <code title="">currentColor</code> keyword is always fully opaque
+  black (there is no associated element). <a
+  href="#refsCSSCOLOR">[CSSCOLOR]</a></p>
+
+  <p class="note">This is because <code>CanvasGradient</code> objects
+  are <code>canvas</code>-neutral — a
+  <code>CanvasGradient</code> object created by one
+  <code>canvas</code> can be used by another, and there is therefore
+  no way to know which is the "element in question" at the time that
+  the color is specified.</p>
+
   </div>
 
 




More information about the Commit-Watchers mailing list