Skip to content

Commit 7e39dbc

Browse files
committed
[css-cascade] Rearranged the inherit section a bit, added an issue about computed value.
1 parent 5f20c7c commit 7e39dbc

2 files changed

Lines changed: 18 additions & 12 deletions

File tree

css-cascade/Overview.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -770,16 +770,11 @@ <h4 id=preshint><span class=secno>4.2.3. </span> Precedence of Non-CSS
770770
<h4 id=cascaded-value><span class=secno>4.2.4. </span> The Cascaded Value</h4>
771771

772772
<p> The <dfn id=cascaded-value0>cascaded value</dfn> represents the result
773-
of the cascade. It is the value of the highest declaration in the <a
773+
of the cascade. It is the value of the first declaration in the <a
774774
href="#output-of-the-cascade"><i>output of the cascade</i></a> (after any
775775
rollback steps have been performed, see below). If the <a
776776
href="#output-of-the-cascade"><i>output of the cascade</i></a> is an empty
777-
list, the <a href="#cascaded-value0"><i>cascaded value</i></a> is the
778-
<a href="#inherit-keyword"><code class=css>inherit</code></a>
779-
keyword if the property is an <a href="#inherited-properties"><i>inherited
780-
property</i></a> (as defined by its property definition table) or the
781-
<a href="#initial-keyword"><code class=css>initial</code></a>
782-
keyword otherwise.
777+
list, there is no cascaded value.
783778

784779
<h3 id=defaulting><span class=secno>4.3. </span> Inheritance and Defaulting</h3>
785780

@@ -827,13 +822,20 @@ <h4 id=inheritance><span class=secno>4.3.2. </span> Inheritance: the ‘<a
827822
href="http://www.w3.org/TR/CSS21/visuren.html#box-gen">anonymous
828823
boxes</a>, or otherwise affected by manipulations of the box tree.
829824

825+
<p> If there is no <a href="#cascaded-value0"><i>cascaded value</i></a>,
826+
the <a href="#inherited-value"><i>inherited value</i></a> becomes the
827+
property's <a href="#specified-value"><i>specified value</i></a>.
828+
830829
<p> If the <a href="#cascaded-value0"><i>cascaded value</i></a> of a
831830
property is the <dfn id=inherit-keyword><code
832831
class=css>inherit</code></dfn> keyword, the <a
833832
href="#inherited-value"><i>inherited value</i></a> becomes the property's
834833
<a href="#specified-value"><i title="specified value">specified</i></a>
835834
and <a href="#computed-value"><i>computed values</i></a>.
836835

836+
<p class=issue> Not sure if the latter is correct, or if it should be just
837+
the specified value (matching the 2.1 errata).
838+
837839
<h4 id=default><span class=secno>4.3.3. </span> Rolling back the cascade:
838840
the ‘<a href="#default-keyword"><code class=css>default</code></a>
839841
keyword</h4>

css-cascade/Overview.src.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -525,13 +525,10 @@ <h4 id="cascaded-value">
525525

526526
<p>
527527
The <dfn>cascaded value</dfn> represents the result of the cascade.
528-
It is the value of the highest declaration in the <i>output of the cascade</i>
528+
It is the value of the first declaration in the <i>output of the cascade</i>
529529
(after any rollback steps have been performed, see below).
530530
If the <i>output of the cascade</i> is an empty list,
531-
the <i>cascaded value</i> is the ''inherit'' keyword
532-
if the property is an <i>inherited property</i>
533-
(as defined by its property definition table)
534-
or the ''initial'' keyword otherwise.
531+
there is no cascaded value.
535532

536533
<h3 id="defaulting">
537534
Inheritance and Defaulting</h3>
@@ -576,10 +573,17 @@ <h4 id="inheritance">
576573
Note that inheritance follows the document tree and is not intercepted by <a href="http://www.w3.org/TR/CSS21/visuren.html#box-gen">anonymous boxes</a>,
577574
or otherwise affected by manipulations of the box tree.
578575

576+
<p>
577+
If there is no <i>cascaded value</i>,
578+
the <i>inherited value</i> becomes the property's <i>specified value</i>.
579+
579580
<p>
580581
If the <i>cascaded value</i> of a property is the <dfn id="inherit-keyword">''inherit''</dfn> keyword,
581582
the <i>inherited value</i> becomes the property's <i title="specified value">specified</i> and <i>computed values</i>.
582583

584+
<p class='issue'>
585+
Not sure if the latter is correct, or if it should be just the specified value (matching the 2.1 errata).
586+
583587
<h4 id="default">
584588
Rolling back the cascade: the ''default'' keyword</h4>
585589

0 commit comments

Comments
 (0)