W3C home > Mailing lists > Public > public-html-commits@w3.org > December 2010

html5/2dcontext Overview.html,1.93,1.94

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 29 Dec 2010 23:07:37 +0000
To: public-html-commits@w3.org
Message-Id: <E1PY57J-0000UZ-1a@lionel-hutz.w3.org>
Update of /sources/public/html5/2dcontext
In directory hutz:/tmp/cvs-serv1873

Modified Files:
	Overview.html 
Log Message:
Clarify handling of CSS colors. (whatwg r5726)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/2dcontext/Overview.html,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -d -r1.93 -r1.94
--- Overview.html	14 Dec 2010 02:07:30 -0000	1.93
+++ Overview.html	29 Dec 2010 23:07:34 -0000	1.94
@@ -1106,13 +1106,14 @@
 
   <p>Both attributes can be either strings,
   <code><a href="#canvasgradient">CanvasGradient</a></code>s, or <code><a href="#canvaspattern">CanvasPattern</a></code>s. On
-  setting, strings must be parsed as CSS &lt;color&gt; values and the
-  color assigned, and <code><a href="#canvasgradient">CanvasGradient</a></code> and
+  setting, strings must be <span title="parsed as a CSS <color>
+  value">parsed as CSS &lt;color&gt; values</span> and the color
+  assigned, and <code><a href="#canvasgradient">CanvasGradient</a></code> and
   <code><a href="#canvaspattern">CanvasPattern</a></code> objects must be assigned themselves. <a href="#refsCSSCOLOR">[CSSCOLOR]</a> If the value is a string but
-  is not a valid color, or is neither a string, a
-  <code><a href="#canvasgradient">CanvasGradient</a></code>, nor a <code><a href="#canvaspattern">CanvasPattern</a></code>, then
-  it must be ignored, and the attribute must retain its previous
-  value.</p>
+  cannot be <span>parsed as a CSS &lt;color&gt; value</span>, or is
+  neither a string, a <code><a href="#canvasgradient">CanvasGradient</a></code>, nor a
+  <code><a href="#canvaspattern">CanvasPattern</a></code>, then it must be ignored, and the
+  attribute must retain its previous value.</p>
 
   <p>When set to a <code><a href="#canvaspattern">CanvasPattern</a></code> or
   <code><a href="#canvasgradient">CanvasGradient</a></code> object, the assignment is
@@ -1207,16 +1208,17 @@
   method on the <code><a href="#canvasgradient">CanvasGradient</a></code> interface adds a new stop
   to a gradient. If the <var title="">offset</var> is less than 0,
   greater than 1, infinite, or NaN, then an
-  <code>INDEX_SIZE_ERR</code> exception must be raised. If the <var title="">color</var> cannot be parsed as a CSS color, then a
-  <code>SYNTAX_ERR</code> exception must be raised. Otherwise, the
-  gradient must have a new stop placed, at offset <var title="">offset</var> relative to the whole gradient, and with the
-  color obtained by parsing <var title="">color</var> as a CSS
-  &lt;color&gt; value. If multiple stops are added at the same offset
-  on a gradient, they must be placed in the order added, with the
-  first one closest to the start of the gradient, and each subsequent
-  one infinitesimally further along towards the end point (in effect
-  causing all but the first and last stop added at each point to be
-  ignored).</p>
+  <code>INDEX_SIZE_ERR</code> exception must be raised. If the <var title="">color</var> cannot be <span>parsed as a CSS &lt;color&gt;
+  value</span>, then a <code>SYNTAX_ERR</code> exception must be
+  raised. Otherwise, the gradient must have a new stop placed, at
+  offset <var title="">offset</var> relative to the whole gradient,
+  and with the color obtained by parsing <var title="">color</var> as
+  a CSS &lt;color&gt; value. If multiple stops are added at the same
+  offset on a gradient, they must be placed in the order added, with
+  the first one closest to the start of the gradient, and each
+  subsequent one infinitesimally further along towards the end point
+  (in effect causing all but the first and last stop added at each
+  point to be ignored).</p>
 
   <p>The <dfn id="dom-context-2d-createlineargradient" title="dom-context-2d-createLinearGradient"><code>createLinearGradient(<var title="">x0</var>, <var title="">y0</var>, <var title="">x1</var>,
   <var title="">y1</var>)</code></dfn> method takes four arguments
@@ -1617,10 +1619,10 @@
   <p>On getting, the <a href="#serialization-of-a-color" title="serialization of a
   color">serialization of the color</a> must be returned.</p>
 
-  <p>On setting, the new value must be parsed as a CSS &lt;color&gt;
-  value and the color assigned. If the value is not a valid color,
-  then it must be ignored, and the attribute must retain its previous
-  value. <a href="#refsCSSCOLOR">[CSSCOLOR]</a></p>
+  <p>On setting, the new value must be <span>parsed as a CSS
+  &lt;color&gt; value</span> and the color assigned. If the value
+  cannot be parsed as a CSS &lt;color&gt; value then it must be
+  ignored, and the attribute must retain its previous value. <a href="#refsCSSCOLOR">[CSSCOLOR]</a></p>
 
   <p>The <dfn id="dom-context-2d-shadowoffsetx" title="dom-context-2d-shadowOffsetX"><code>shadowOffsetX</code></dfn>
   and <dfn id="dom-context-2d-shadowoffsety" title="dom-context-2d-shadowOffsetY"><code>shadowOffsetY</code></dfn>
Received on Wednesday, 29 December 2010 23:07:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 29 December 2010 23:08:42 GMT