|
11 | 11 |
|
12 | 12 | <meta content="CSS Cascading and Inheritance Level 3" name=dcterms.title> |
13 | 13 | <meta content=text name=dcterms.type> |
14 | | - <meta content=2012-12-07 name=dcterms.issued> |
| 14 | + <meta content=2012-12-13 name=dcterms.issued> |
15 | 15 | <meta content="http://dev.w3.org/csswg/css3-cascade/" name=dcterms.creator> |
16 | 16 | <meta content=W3C name=dcterms.publisher> |
17 | | - <meta content="http://www.w3.org/TR/2012/ED-css3-cascade-20121207/" |
| 17 | + <meta content="http://www.w3.org/TR/2012/ED-css3-cascade-20121213/" |
18 | 18 | name=dcterms.identifier> |
19 | 19 | <link href="../default.css" rel=stylesheet type="text/css"> |
20 | 20 | <link href="http://www.w3.org/StyleSheets/TR/W3C-ED.css" rel=stylesheet |
|
27 | 27 |
|
28 | 28 | <h1>CSS Cascading and Inheritance Level 3</h1> |
29 | 29 |
|
30 | | - <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 7 December |
| 30 | + <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 13 December |
31 | 31 | 2012</h2> |
32 | 32 |
|
33 | 33 | <dl> |
34 | 34 | <dt>This version: |
35 | 35 |
|
36 | 36 | <dd><a |
37 | | - href="http://www.w3.org/TR/2012/ED-css3-cascade-20121207/">http://www.w3.org/TR/2012/ED-css3-cascade-20121207/</a> |
| 37 | + href="http://www.w3.org/TR/2012/ED-css3-cascade-20121213/">http://www.w3.org/TR/2012/ED-css3-cascade-20121213/</a> |
38 | 38 |
|
39 | 39 | <dt>Latest version: |
40 | 40 |
|
@@ -516,19 +516,30 @@ <h3 id=cascade><span class=secno>4.2. </span> Cascading Declarations</h3> |
516 | 516 |
|
517 | 517 | <dt id=cascade-step-scope>Scope |
518 | 518 |
|
519 | | - <dd> If a declaration belongs to a ruleset with a <a |
520 | | - href="http://www.w3.org/TR/selectors4/#scoping">scoped selector</a>, the |
521 | | - element it is scoped to can affect the cascade. For the purpose of this |
522 | | - step, declarations from style attributes <a href="#CSSSTYLEATTR" |
| 519 | + <dd> A declaration can be <dfn id=scoped>scoped</dfn> to a subtree of the |
| 520 | + document so that it only affects its <dfn |
| 521 | + id=scoping-element-and-that-elements-descen>scoping element<dfn |
| 522 | + id=and-that-elements-descendants.-for-examp> and that element's |
| 523 | + descendants. For example, <a href="#HTML5" |
| 524 | + rel=biblioentry>[HTML5]<!--{{HTML5}}--></a> defines scoped |
| 525 | + <code><style></code> elements, whose style sheets are scoped to the |
| 526 | + element's parent. If a declaration is <i>scoped</i>, which element it is |
| 527 | + scoped to affects the cascade. For the purpose of this step, declarations |
| 528 | + from style attributes <a href="#CSSSTYLEATTR" |
523 | 529 | rel=biblioentry>[CSSSTYLEATTR]<!--{{!CSSSTYLEATTR}}--></a> are considered |
524 | | - to be scoped to the element with the attribute, and all other |
525 | | - declarations are considered to be scoped to the root element. |
526 | | - <p> If the <a |
527 | | - href="http://www.w3.org/TR/selectors4/#scoping-element">scoping |
528 | | - elements</a> of two declarations have an ancestor/descendant |
529 | | - relationship, the declaration whose scoping element is the descendant |
530 | | - wins. If one declaration is from a style attribute on an element and the |
531 | | - other is from a ruleset scoped to that element, the declaration in the |
| 530 | + to be <i>scoped</i> to the element with the attribute, and all unscoped |
| 531 | + declarations are considered to be <i>scoped</i> to the root element. |
| 532 | + </dfn></dfn> |
| 533 | + <p> If the <a href="#scoping-element-and-that-elements-descen"><i>scoping |
| 534 | + elements</i></a> of two declarations have an ancestor/descendant |
| 535 | + relationship, then for normal rules the declaration whose <a |
| 536 | + href="#scoping-element-and-that-elements-descen"><i>scoping |
| 537 | + element</i></a> is the descendant wins, and for important rules the |
| 538 | + declaration whose <a |
| 539 | + href="#scoping-element-and-that-elements-descen"><i>scoping |
| 540 | + element</i></a> is the ancestor wins. If one declaration is from a style |
| 541 | + attribute on an element and the other is from a ruleset otherwise <a |
| 542 | + href="#scoped"><i>scoped</i></a> to that element, the declaration in the |
532 | 543 | style attribute wins. |
533 | 544 |
|
534 | 545 | <dt id=cascade-step-specificity>Specificity |
@@ -1117,10 +1128,10 @@ <h3 class=no-num id=normative-references>Normative references</h3> |
1117 | 1128 | <dt id=DOM-LEVEL-2-STYLE>[DOM-LEVEL-2-STYLE] |
1118 | 1129 |
|
1119 | 1130 | <dd>Chris Wilson; Philippe Le Hégaret; Vidur Apparao. <a |
1120 | | - href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113"><cite>Document |
| 1131 | + href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/"><cite>Document |
1121 | 1132 | Object Model (DOM) Level 2 Style Specification.</cite></a> 13 November |
1122 | 1133 | 2000. W3C Recommendation. URL: <a |
1123 | | - href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113">http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113</a> |
| 1134 | + href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/">http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/</a> |
1124 | 1135 | </dd> |
1125 | 1136 | <!----> |
1126 | 1137 |
|
@@ -1162,6 +1173,15 @@ <h3 class=no-num id=other-references>Other references</h3> |
1162 | 1173 | </dd> |
1163 | 1174 | <!----> |
1164 | 1175 |
|
| 1176 | + <dt id=HTML5>[HTML5] |
| 1177 | + |
| 1178 | + <dd>Ian Hickson. <a |
| 1179 | + href="http://www.w3.org/TR/2011/WD-html5-20110525/"><cite>HTML5.</cite></a> |
| 1180 | + 25 May 2011. W3C Working Draft. (Work in progress.) URL: <a |
| 1181 | + href="http://www.w3.org/TR/2011/WD-html5-20110525/">http://www.w3.org/TR/2011/WD-html5-20110525/</a> |
| 1182 | + </dd> |
| 1183 | + <!----> |
| 1184 | + |
1165 | 1185 | <dt id=SVG11>[SVG11] |
1166 | 1186 |
|
1167 | 1187 | <dd>Erik Dahlström; et al. <a |
@@ -1213,6 +1233,21 @@ <h2 class=no-num id=index>Index</h2> |
1213 | 1233 | <li>output of the cascade, <a href="#output-of-the-cascade" |
1214 | 1234 | title="section 4.2."><strong>4.2.</strong></a> |
1215 | 1235 |
|
| 1236 | + <li>scoped, <a href="#scoped" |
| 1237 | + title="section 4.2."><strong>4.2.</strong></a> |
| 1238 | + |
| 1239 | + <li>scoping element and that element's descendants. For example, <a |
| 1240 | + href="#HTML5" rel=biblioentry>[HTML5]<!--{{HTML5}}--></a> defines scoped |
| 1241 | + <code><style></code> elements, whose style sheets are scoped to the |
| 1242 | + element's parent. If a declaration is scoped, which element it is scoped |
| 1243 | + to affects the cascade. For the purpose of this step, declarations from |
| 1244 | + style attributes <a href="#CSSSTYLEATTR" |
| 1245 | + rel=biblioentry>[CSSSTYLEATTR]<!--{{!CSSSTYLEATTR}}--></a> are considered |
| 1246 | + to be scoped to the element with the attribute, and all unscoped |
| 1247 | + declarations are considered to be scoped to the root element., <a |
| 1248 | + href="#scoping-element-and-that-elements-descen" |
| 1249 | + title="section 4.2."><strong>4.2.</strong></a> |
| 1250 | + |
1216 | 1251 | <li>shorthand properties, <a href="#shorthand-properties" |
1217 | 1252 | title="section 3."><strong>3.</strong></a> |
1218 | 1253 |
|
|
0 commit comments