[html5] r1734 - /

whatwg at whatwg.org whatwg at whatwg.org
Mon Jun 9 15:22:30 PDT 2008


Author: ianh
Date: 2008-06-09 15:22:29 -0700 (Mon, 09 Jun 2008)
New Revision: 1734

Modified:
   index
   source
Log:
[] (0) Define 'computed value' for things not in a tree (mostly affects canvas stuff).

Modified: index
===================================================================
--- index	2008-06-08 19:40:52 UTC (rev 1733)
+++ index	2008-06-09 22:22:29 UTC (rev 1734)
@@ -25,7 +25,7 @@
 
    <h1 id=html-5>HTML 5</h1>
 
-   <h2 class="no-num no-toc" id=draft>Draft Recommendation — 8 June
+   <h2 class="no-num no-toc" id=draft>Draft Recommendation — 9 June
     2008</h2>
 
    <p>You can take part in this work. <a
@@ -2425,9 +2425,11 @@
    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. <a href="#refsCSS3COLOR">[CSS3COLOR]</a></p>
-  <!-- XXX what if that
-  element has no computed value? e.g. if it is not in a document? -->
+   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="#refsCSS3COLOR">[CSS3COLOR]</a>
 
   <p class=example>If a canvas gradient's <code
    title=dom-canvasgradient-addColorStop><a
@@ -19813,9 +19815,11 @@
    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.</p>
-  <!-- XXX what if that
-  element has no computed value? e.g. if it is not in a document? -->
+   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
+   normal-weight 10px sans-serif default.
 
   <p>The <dfn id=textalign
    title=dom-context-2d-textAlign><code>textAlign</code></dfn> DOM attribute,

Modified: source
===================================================================
--- source	2008-06-08 19:40:52 UTC (rev 1733)
+++ source	2008-06-09 22:22:29 UTC (rev 1734)
@@ -677,9 +677,12 @@
   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. <a
-  href="#refsCSS3COLOR">[CSS3COLOR]</a></p> <!-- XXX what if that
-  element has no computed value? e.g. if it is not in a document? -->
+  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="#refsCSS3COLOR">[CSS3COLOR]</a></p>
 
   <p class="example">If a canvas gradient's <code
   title="dom-canvasgradient-addColorStop">addColorStop()</code> method
@@ -17508,8 +17511,11 @@
   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>canvas</code> element.</p> <!-- XXX what if that
-  element has no computed value? e.g. if it is not in a document? -->
+  corresponding <code>canvas</code> element. If the computed values
+  are undefined for a particular case (e.g. because the
+  <code>canvas</code> element is not in a document), then the relative
+  keywords must be interpreted relative to the normal-weight 10px
+  sans-serif default.</p>
 
   <p>The <dfn
   title="dom-context-2d-textAlign"><code>textAlign</code></dfn> DOM




More information about the Commit-Watchers mailing list