Skip to content

Commit 934139e

Browse files
committed
[css-cascade] Move some statement about null cascaded value to a separate subsection.
--HG-- extra : rebase_source : b88978b0959a744625696771426ff5ca68662b3b
1 parent 3696b7d commit 934139e

2 files changed

Lines changed: 39 additions & 11 deletions

File tree

css-cascade/Overview.html

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
rel=dcterms.rights>
1111
<meta content="CSS Cascading and Inheritance Level 3" name=dcterms.title>
1212
<meta content=text name=dcterms.type>
13-
<meta content=2013-06-11 name=dcterms.date>
13+
<meta content=2013-06-13 name=dcterms.date>
1414
<meta content="Håkon Wium Lie" name=dcterms.creator>
1515
<meta content="Elika J. Etemad" name=dcterms.creator>
1616
<meta content="Tab Atkins Jr." name=dcterms.creator>
@@ -29,11 +29,11 @@
2929

3030
<h1>CSS Cascading and Inheritance Level 3</h1>
3131

32-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 11 June 2013</h2>
32+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 13 June 2013</h2>
3333

3434
<dl><!--
3535
<dt>This version:
36-
<dd><a href="http://dev.w3.org/csswg/css3-cascade/">http://www.w3.org/TR/2013/WD-css3-cascade-20130611/</a>
36+
<dd><a href="http://dev.w3.org/csswg/css3-cascade/">http://www.w3.org/TR/2013/WD-css3-cascade-20130613/</a>
3737
-->
3838

3939
<dt>Latest version:
@@ -194,6 +194,9 @@ <h2 class="no-num no-toc" id=table-of-contents> Table of contents</h2>
194194

195195
<li><a href="#default"><span class=secno>4.3.3. </span> Rolling back
196196
the cascade: the ‘<code class=css>default</code>’ keyword</a>
197+
198+
<li><a href="#no-value"><span class=secno>4.3.4. </span> When There Is
199+
No Cascaded Value</a>
197200
</ul>
198201
</ul>
199202

@@ -822,10 +825,6 @@ <h4 id=inheritance><span class=secno>4.3.2. </span> Inheritance: the ‘<a
822825
href="http://www.w3.org/TR/CSS21/visuren.html#box-gen">anonymous
823826
boxes</a>, or otherwise affected by manipulations of the box tree.
824827

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-
829828
<p> If the <a href="#cascaded-value0"><i>cascaded value</i></a> of a
830829
property is the <dfn id=inherit-keyword><code
831830
class=css>inherit</code></dfn> keyword, the <a
@@ -863,6 +862,19 @@ <h4 id=default><span class=secno>4.3.3. </span> Rolling back the cascade:
863862
href="http://lists.w3.org/Archives/Public/www-style/2012Dec/0270.html">dbaron's
864863
message</a>.
865864

865+
<h4 id=no-value><span class=secno>4.3.4. </span> When There Is No Cascaded
866+
Value</h4>
867+
868+
<p> Sometimes, the <a href="#output-of-the-cascade"><i>output of the
869+
cascade</i></a> is an empty list, and so there is no cascaded value.
870+
871+
<p> In this case, if the property is inherited (as defined by the
872+
property's definition table) and the element has a parent, the specified
873+
value is the computed value of the same property on the element's parent.
874+
875+
<p> Otherwise, the specified value is the property's initial value, as
876+
defined by the property's definition table.
877+
866878
<h2 id=value-stages><span class=secno>5. </span> Stages of Value
867879
Computation</h2>
868880

css-cascade/Overview.src.html

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -574,10 +574,6 @@ <h4 id="inheritance">
574574
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>,
575575
or otherwise affected by manipulations of the box tree.
576576

577-
<p>
578-
If there is no <i>cascaded value</i>,
579-
the <i>inherited value</i> becomes the property's <i>specified value</i>.
580-
581577
<p>
582578
If the <i>cascaded value</i> of a property is the <dfn id="inherit-keyword">''inherit''</dfn> keyword,
583579
the <i>inherited value</i> becomes the property's <i title="specified value">specified</i> and <i>computed values</i>.
@@ -607,6 +603,26 @@ <h4 id="default">
607603
This definition might need tweaking to sensibly handle animations.
608604
See <a href="http://lists.w3.org/Archives/Public/www-style/2012Dec/0270.html">dbaron's message</a>.
609605

606+
<h4 id='no-value'>
607+
When There Is No Cascaded Value</h4>
608+
609+
<p>
610+
Sometimes, the <i>output of the cascade</i> is an empty list,
611+
and so there is no cascaded value.
612+
613+
<p>
614+
In this case,
615+
if the property is inherited
616+
(as defined by the property's definition table)
617+
and the element has a parent,
618+
the specified value is the computed value of the same property on the element's parent.
619+
620+
<p>
621+
Otherwise,
622+
the specified value is the property's initial value,
623+
as defined by the property's definition table.
624+
625+
610626
<h2 id="value-stages">
611627
Stages of Value Computation</h2>
612628

0 commit comments

Comments
 (0)