Skip to content

Commit 6051375

Browse files
committed
[css-cascade] Fix the 'order of appearance' to talk only about declarations, as style attributes have no rules.
--HG-- extra : rebase_source : cd685a11ebe304f4ac2b9ed8e4239f5852a4b1fa
1 parent 5cba357 commit 6051375

2 files changed

Lines changed: 31 additions & 16 deletions

File tree

css-cascade/Overview.html

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

3939
<dt>Latest version:
@@ -611,14 +611,21 @@ <h3 id=cascade><span class=secno>4.2. </span> Cascading Declarations</h3>
611611

612612
<dt id=cascade-order>Order of appearance.
613613

614-
<dd> Rules from <a href="#atimport"><i title="@import">imported style
615-
sheets</i></a> are treated as if their stylesheets were substituted in
616-
place of the ‘<a href="#atimport"><code class=css>@import</code></a>
617-
rule. Stylesheets independently linked by the originating document are
618-
treated as if they were concatenated in linking order, as determined by
619-
the host document language. Style attributes are treated as if their
620-
style rules were concatenated in document order, after any stylesheets.
621-
The last declaration wins.
614+
<dd> The last declaration in document order wins. For this purpose:
615+
<ul>
616+
<li>Declarations from <a href="#atimport"><i title="@import">imported
617+
style sheets</i></a> are ordered as if their stylesheets were
618+
substituted in place of the ‘<a href="#atimport"><code
619+
class=css>@import</code></a>’ rule.
620+
621+
<li>Declarations from stylesheets independently linked by the
622+
originating document are treated as if they were concatenated in
623+
linking order, as determined by the host document language.
624+
625+
<li>Declarations from style attributes are ordered according to the
626+
document order of the element the style attribute appears on, and are
627+
all placed after any stylesheets.
628+
</ul>
622629
</dl>
623630

624631
<p> The <dfn id=output-of-the-cascade>output of the cascade</dfn> is a

css-cascade/Overview.src.html

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -387,11 +387,19 @@ <h3 id='cascade'>
387387

388388
<dt id='cascade-order'>Order of appearance.
389389
<dd>
390-
Rules from <i title="@import">imported style sheets</i> are treated as if their stylesheets were substituted in place of the ''@import'' rule.
391-
Stylesheets independently linked by the originating document are treated as if they were concatenated in linking order,
392-
as determined by the host document language.
393-
Style attributes are treated as if their style rules were concatenated in document order, after any stylesheets.
394-
The last declaration wins.
390+
The last declaration in document order wins.
391+
For this purpose:
392+
393+
<ul>
394+
<li>Declarations from <i title="@import">imported style sheets</i>
395+
are ordered as if their stylesheets were substituted in place of the ''@import'' rule.
396+
<li>Declarations from stylesheets independently linked by the originating document
397+
are treated as if they were concatenated in linking order,
398+
as determined by the host document language.
399+
<li>Declarations from style attributes
400+
are ordered according to the document order of the element the style attribute appears on,
401+
and are all placed after any stylesheets.
402+
</ul>
395403
</dl>
396404

397405
<p>

0 commit comments

Comments
 (0)