- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 13 Jun 2008 09:09:12 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv7371
Modified Files:
Overview.html
Log Message:
Make computed values in the Canvas API take effect on setting, not on use. (Re: [whatwg] are relative values of CanvasRenderingContext2D.font live to style changes?) (whatwg r1772)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.961
retrieving revision 1.962
diff -u -d -r1.961 -r1.962
--- Overview.html 13 Jun 2008 08:59:44 -0000 1.961
+++ Overview.html 13 Jun 2008 09:09:09 -0000 1.962
@@ -2554,24 +2554,6 @@
<p class=big-issue>See <a
href="http://dev.w3.org/cvsweb/~checkout~/csswg/cssom/Overview.html?content-type=text/html;%20charset=utf-8">http://dev.w3.org/cvsweb/~checkout~/csswg/cssom/Overview.html?content-type=text/html;%20charset=utf-8</a>
- <p>Certain features are defined in terms of CSS <color> values. When
- the CSS value <code title="">currentColor</code> is specified in this
- context, the "computed value of the 'color' property" for the purposes of
- determining the computed value of the <code title="">currentColor</code>
- keyword is the computed value of the 'color' property on the element in
- question. If the computed value of the 'color' property is undefined for a
- particular case (e.g. because the element is not in a document), then the
- "computed value of the 'color' property" for the purposes of determining
- the computed value of the <code title="">currentColor</code> keyword is
- fully opaque black. <a href="#references">[CSS3COLOR]</a>
-
- <p class=example>If a canvas gradient's <code
- title=dom-canvasgradient-addColorStop><a
- href="#addcolorstop">addColorStop()</a></code> method is called with the
- <code title="">currentColor</code> keyword as the color, then the computed
- value of the 'color' property on the <code><a
- href="#canvas">canvas</a></code> element is the one that is used.
-
<h3 id=terminology><span class=secno>1.4 </span>Terminology</h3>
<p>This specification refers to both HTML and XML attributes and DOM
@@ -18585,6 +18567,19 @@
> exceptions when passing in non-finite arguments.
-->
+ <p>Whenever the CSS value <code title="">currentColor</code> is used as a
+ color in this API, the "computed value of the 'color' property" for the
+ purposes of determining the computed value of the <code
+ title="">currentColor</code> keyword is the computed value of the 'color'
+ property on the element in question at the time that the color is
+ specified (e.g. when the appropriate attribute is set, or when the method
+ is called; not when the color is rendered or otherwise used). If the
+ computed value of the 'color' property is undefined for a particular case
+ (e.g. because the element is not in a document), then the "computed value
+ of the 'color' property" for the purposes of determining the computed
+ value of the <code title="">currentColor</code> keyword is fully opaque
+ black. <a href="#references">[CSS3COLOR]</a>
+
<h6 id=the-canvas0><span class=secno>3.11.11.1.1. </span>The canvas state</h6>
<p>Each context maintains a stack of drawing states. <dfn id=drawing0
@@ -19752,13 +19747,14 @@
percentages, 'em' or 'ex' units, or the 'larger' or 'smaller' keywords,
these must be interpreted relative to the computed value of the
'font-size' property of the corresponding <code><a
- href="#canvas">canvas</a></code> element. When the 'font-weight' component
- is set to the relative values 'bolder' and 'lighter', these must be
- interpreted relative to the computed value of the 'font-weight' property
- of the corresponding <code><a href="#canvas">canvas</a></code> element. If
- the computed values are undefined for a particular case (e.g. because the
- <code><a href="#canvas">canvas</a></code> element is not in a document),
- then the relative keywords must be interpreted relative to the
+ href="#canvas">canvas</a></code> element at the time that the attribute is
+ set. When the 'font-weight' component is set to the relative values
+ 'bolder' and 'lighter', these must be interpreted relative to the computed
+ value of the 'font-weight' property of the corresponding <code><a
+ href="#canvas">canvas</a></code> element at the time that the attribute is
+ set. If the computed values are undefined for a particular case (e.g.
+ because the <code><a href="#canvas">canvas</a></code> element is not in a
+ document), then the relative keywords must be interpreted relative to the
normal-weight 10px sans-serif default.
<p>The <dfn id=textalign
Received on Friday, 13 June 2008 09:09:49 UTC