Skip to content

Commit 9fed7ff

Browse files
committed
[css-cascade] Reword 'default' definition to be clearer. Remove dbaron's issue about origin merging, as we just merged Animations and Override into 'author-level'.
--HG-- extra : rebase_source : 70040ff21d6af418955d48d9c1c76dcc27f1e8bb
1 parent 41aba61 commit 9fed7ff

File tree

2 files changed

+47
-29
lines changed

2 files changed

+47
-29
lines changed

css-cascade/Overview.html

Lines changed: 29 additions & 18 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-26 name=dcterms.date>
13+
<meta content=2013-07-01 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 26 June 2013</h2>
32+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 1 July 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-20130626/</a>
36+
<dd><a href="http://dev.w3.org/csswg/css3-cascade/">http://www.w3.org/TR/2013/WD-css3-cascade-20130701/</a>
3737
-->
3838

3939
<dt>Latest version:
@@ -855,21 +855,32 @@ <h4 id=default><span class=secno>4.3.3. </span> Rolling back the cascade:
855855

856856
<p> If the <a href="#cascaded-value0"><i>cascaded value</i></a> is the
857857
<a href="#default-keyword"><code class=css>default</code></a>
858-
keyword, then all declarations in the <a href="#origin"><i>origin</i></a>
859-
level to which it belongs are discarded from the cascade, resulting in a
860-
new <a href="#cascaded-value0"><i>cascaded value</i></a>. For this
861-
purpose, all author-originating styles (author and override, both normal
862-
and important) are treated as belonging to the same <a
863-
href="#origin"><i>origin</i></a> level. This repeats until the <a
864-
href="#cascaded-value0"><i>cascaded value</i></a> is not ‘<a
865-
href="#default-keyword"><code class=css>default</code></a>’ or until the
866-
<a href="#output-of-the-cascade"><i>output of the cascade</i></a> is
867-
empty.
868-
869-
<p class=issue> This definition might need tweaking to sensibly handle
870-
animations. See <a
871-
href="http://lists.w3.org/Archives/Public/www-style/2012Dec/0270.html">dbaron's
872-
message</a>.
858+
keyword, the behavior depends on the origin to which the declaration
859+
belongs:
860+
861+
<dl>
862+
<dt>user-agent origin
863+
864+
<dd> Equivalent to ‘<a href="#inherit-keyword"><code
865+
class=css>inherit</code></a>’ or ‘<a href="#initial-keyword"><code
866+
class=css>initial</code></a>’, depending on whether the property is
867+
<i>inherited</i> or not.
868+
869+
<dt>user origin
870+
871+
<dd> Rolls back the cascade to the user-agent level, so that the <a
872+
href="#specified-value"><i>specified value</i></a> is calculated as if no
873+
author-level or user-level rules were specified for this property.
874+
875+
<dt>author origin
876+
877+
<dd> Rolls back the cascade to the user level, so that the <a
878+
href="#specified-value"><i>specified value</i></a> is calculated as if no
879+
author-level rules were specified for this property. For the purpose of
880+
<a href="#default-keyword"><code class=css>default</code></a>’, this
881+
origin includes the Override and Animation <a
882+
href="#origin"><i>origins</i></a>.
883+
</dl>
873884

874885
<h4 id=no-value><span class=secno>4.3.4. </span> When There Is No Cascaded
875886
Value</h4>

css-cascade/Overview.src.html

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -611,17 +611,24 @@ <h4 id="default">
611611

612612
<p>
613613
If the <i>cascaded value</i> is the ''default'' keyword,
614-
then all declarations in the <i>origin</i> level to which it belongs are discarded from the cascade,
615-
resulting in a new <i>cascaded value</i>.
616-
For this purpose, all author-originating styles
617-
(author and override, both normal and important)
618-
are treated as belonging to the same <i>origin</i> level.
619-
This repeats until the <i>cascaded value</i> is not ''default''
620-
or until the <i>output of the cascade</i> is empty.
621-
622-
<p class="issue">
623-
This definition might need tweaking to sensibly handle animations.
624-
See <a href="http://lists.w3.org/Archives/Public/www-style/2012Dec/0270.html">dbaron's message</a>.
614+
the behavior depends on the origin to which the declaration belongs:
615+
616+
<dl>
617+
<dt>user-agent origin
618+
<dd>
619+
Equivalent to ''inherit'' or ''initial'', depending on whether the property is <i>inherited</i> or not.
620+
621+
<dt>user origin
622+
<dd>
623+
Rolls back the cascade to the user-agent level,
624+
so that the <i>specified value</i> is calculated as if no author-level or user-level rules were specified for this property.
625+
626+
<dt>author origin
627+
<dd>
628+
Rolls back the cascade to the user level,
629+
so that the <i>specified value</i> is calculated as if no author-level rules were specified for this property.
630+
For the purpose of ''default'', this origin includes the Override and Animation <i>origins</i>.
631+
</dl>
625632

626633
<h4 id='no-value'>
627634
When There Is No Cascaded Value</h4>

0 commit comments

Comments
 (0)