This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language, or any of the DOM specifications beyond those described
@@ -32045,13 +32072,14 @@ <h6 id=colors-and-styles><span class=secno>4.8.11.1.4 </span>Colors and styles</
<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 <color> values and the
color assigned, and <code><a href=#canvasgradient>CanvasGradient</a></code> and
setting, strings must be <a href=#parsed-as-a-css-color-value title="parsed as a CSS <color>
value">parsed as CSS <color> values</a> 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 <a href=#parsed-as-a-css-color-value>parsed as a CSS <color> value</a>, 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
@@ -32152,16 +32180,17 @@ <h6 id=colors-and-styles><span class=secno>4.8.11.1.4 </span>Colors and styles</
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><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception must be raised. If the <var title="">color</var> cannot be parsed as a CSS color, then a
<code><a href=#syntax_err>SYNTAX_ERR</a></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
<color> 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><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception must be raised. If the <var title="">color</var> cannot be <a href=#parsed-as-a-css-color-value>parsed as a CSS <color>
value</a>, then a <code><a href=#syntax_err>SYNTAX_ERR</a></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 <color> 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language, or any of the DOM specifications beyond those described
@@ -32027,13 +32054,14 @@ idea from Mihai:
<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 <color> values and the
color assigned, and <code><a href=#canvasgradient>CanvasGradient</a></code> and
setting, strings must be <a href=#parsed-as-a-css-color-value title="parsed as a CSS <color>
value">parsed as CSS <color> values</a> 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 <a href=#parsed-as-a-css-color-value>parsed as a CSS <color> value</a>, 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
@@ -32134,16 +32162,17 @@ idea from Mihai:
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><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception must be raised. If the <var title="">color</var> cannot be parsed as a CSS color, then a
<code><a href=#syntax_err>SYNTAX_ERR</a></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
<color> 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><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception must be raised. If the <var title="">color</var> cannot be <a href=#parsed-as-a-css-color-value>parsed as a CSS <color>
value</a>, then a <code><a href=#syntax_err>SYNTAX_ERR</a></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 <color> 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters