You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><p>If <var>value</var> can be <span>parsed as a CSS <color> value</span>, return
14054
-
the parsed color.</p></li>
14074
+
<li><p>Let <var>color</var> be the result of <span data-x="parse a CSS <color>
14075
+
value">parsing</span> <var>value</var>.</p></li>
14076
+
14077
+
<li><p>If <var>color</var> is not failure, then return <var>color</var>.</p></li>
14055
14078
</ol>
14056
14079
</li>
14057
14080
14058
-
<li><p>If this step is reached, the page has no theme color.</p></li>
14081
+
<li><p>Return nothing (the page has no theme color).</p></li>
14059
14082
</ol>
14060
14083
14061
14084
<p>If any <code>meta</code> elements are <span data-x="node is inserted into a
@@ -60088,33 +60111,6 @@ context.fillRect(100,0,50,50); // only this square remains</pre>
60088
60111
<p>The <dfn><code data-x="dom-context-2d-canvas">canvas</code></dfn> attribute must return the
60089
60112
value it was initialized to when the object was created.</p>
60090
60113
60091
-
<hr>
60092
-
60093
-
<p id="canvasrenderingcontext2d-currentcolor">Whenever the CSS value <code
60094
-
data-x="">currentColor</code> is used as a color in the <code>CanvasRenderingContext2D</code>
60095
-
API, the <span>computed value</span> of the <code data-x="">currentColor</code> keyword is
60096
-
the <span>computed value</span> of the <span>'color'</span> property on the <code>canvas</code>
60097
-
element at the time that the color is specified (e.g. when the appropriate attribute is set, or
60098
-
when the method is called; not when the color is rendered or otherwise used). If the computed
60099
-
value of the <span>'color'</span> property is undefined for a particular case (e.g. because the element is
60100
-
not in a document), then the <span>computed value</span> of the <span>'color'</span> property
60101
-
for the purposes of determining the computed value of the <code data-x="">currentColor</code>
60102
-
keyword is fully opaque black. <ref spec=CSSCOLOR></p>
60103
-
60104
-
<p>In the case of <code data-x="dom-canvasgradient-addColorStop">addColorStop()</code> on
60105
-
<code>CanvasGradient</code>, the "<span>computed value</span> of the <span>'color'</span>
60106
-
property" for the purposes of determining the <span>computed value</span> of the <code
60107
-
data-x="">currentColor</code> keyword is always fully opaque black (there is no associated
60108
-
element). <ref spec=CSSCOLOR></p>
60109
-
60110
-
<p class="note">This is because <code>CanvasGradient</code> objects are
60111
-
<code>canvas</code>-neutral — a <code>CanvasGradient</code> object created by one
60112
-
<code>canvas</code> can be used by another, and there is therefore no way to know which is the
60113
-
"element in question" at the time that the color is specified.</p>
60114
-
60115
-
<p class="note">Similar concerns exist with font-related properties; the rules for those are
60116
-
described in detail in the relevant section below.</p>
60117
-
60118
60114
</div>
60119
60115
60120
60116
<hr>
@@ -62370,18 +62366,14 @@ try {
62370
62366
or style to use for the lines around the shapes.</p>
62371
62367
62372
62368
<p>Both attributes can be either strings, <code>CanvasGradient</code>s, or
62373
-
<code>CanvasPattern</code>s. On setting, strings must be <span data-x="parsed as a CSS
62374
-
<color> value">parsed as CSS <color> values</span> and the color assigned, and
62375
-
<code>CanvasGradient</code> and <code>CanvasPattern</code> objects must be assigned themselves. <ref spec=CSSCOLOR> If the value is a string but cannot be <span>parsed as a CSS
62376
-
<color> value</span>, then it must be ignored, and the attribute must retain its previous
62377
-
value.
62378
-
<!--ADD-TOPIC:Security-->
62379
-
If the new value is a <code>CanvasPattern</code> object that is marked as <span
62369
+
<code>CanvasPattern</code>s. On setting, strings must be <span data-x="parse a CSS <color>
62370
+
value">parsed</span> with this <code>canvas</code> element and the color assigned, and
62371
+
<code>CanvasGradient</code> and <code>CanvasPattern</code> objects must be assigned themselves. If
62372
+
parsing the value results in failure, then it must be ignored, and the attribute must retain its
62373
+
previous value. If the new value is a <code>CanvasPattern</code> object that is marked as <span
62380
62374
data-x="concept-canvas-pattern-not-origin-clean">not origin-clean</span>, then the
62381
62375
<code>CanvasRenderingContext2D</code>'s <span
62382
-
data-x="concept-canvas-origin-clean">origin-clean</span> flag must be set to false.
62383
-
<!--REMOVE-TOPIC:Security-->
62384
-
</p>
62376
+
data-x="concept-canvas-origin-clean">origin-clean</span> flag must be set to false.</p>
62385
62377
62386
62378
<p>When set to a <code>CanvasPattern</code> or <code>CanvasGradient</code> object, the assignment
62387
62379
is <span>live</span>, meaning that changes made to the object after the assignment do affect
0 commit comments