Skip to content

Commit

Permalink
[] (0) Define 'computed value' for things not in a tree (mostly affec…
Browse files Browse the repository at this point in the history
…ts canvas stuff).

git-svn-id: http://svn.whatwg.org/webapps@1734 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 9, 2008
1 parent 4464fdb commit f93db30
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
18 changes: 11 additions & 7 deletions index
Expand Up @@ -25,7 +25,7 @@

<h1 id=html-5>HTML 5</h1>

<h2 class="no-num no-toc" id=draft>Draft Recommendation &mdash; 8 June
<h2 class="no-num no-toc" id=draft>Draft Recommendation &mdash; 9 June
2008</h2>

<p>You can take part in this work. <a
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -19813,9 +19815,11 @@ notes on what would need to be defined for dashed lines:
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,
Expand Down
16 changes: 11 additions & 5 deletions source
Expand Up @@ -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
Expand Down Expand Up @@ -17508,8 +17511,11 @@ notes on what would need to be defined for dashed lines:
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
Expand Down

0 comments on commit f93db30

Please sign in to comment.