Skip to content

Commit 6357594

Browse files
committed
[css-lists] Handle ol[reversed] in the defautl style sheet.
--HG-- extra : rebase_source : bc9433f3fbc37433bf6479a59605e6b6a079967c
1 parent a1adafc commit 6357594

2 files changed

Lines changed: 21 additions & 3 deletions

File tree

css-lists/Overview.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
</p>
6161
<h1 class="p-name no-ref" id=title>CSS Lists and Counters Module Level 3</h1>
6262
<h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft,
63-
<span class=dt-updated><span class=value-title title=20131220>20 December 2013</span></span></span></h2>
63+
<span class=dt-updated><span class=value-title title=20140122>22 January 2014</span></span></span></h2>
6464
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://dev.w3.org/csswg/css3-lists/>http://dev.w3.org/csswg/css3-lists/</a><dt>Latest version:<dd><a href=http://www.w3.org/TR/css3-lists/>http://www.w3.org/TR/css3-lists/</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/csswg/css3-lists/>http://dev.w3.org/csswg/css3-lists/</a><dt>Previous Versions:<dd><a href=http://www.w3.org/TR/2011/WD-css3-lists-20110524/ rel=previous>http://www.w3.org/TR/2011/WD-css3-lists-20110524/</a>
6565
<dt>Feedback:</dt>
6666
<dd><a href="mailto:www-style@w3.org?subject=%5Bcss-lists%5D%20feedback">www-style@w3.org</a>
@@ -670,7 +670,7 @@ <h3 class="heading settled heading" data-level=7.1 id=position-marker><span clas
670670
&lt;/style&gt;
671671
&lt;ol&gt;
672672
&lt;li&gt;
673-
&lt;span class='marker'&gt;(a)&lt;/span&gt; Definitions.— For purposes of this section—<wbr></wbr>&lt;ol&gt;
673+
&lt;span class='marker'&gt;(a)&lt;/span&gt; Definitions.— For purposes of this section—<wbr>&lt;ol&gt;
674674
&lt;li&gt;&lt;span class='marker'&gt;(1)&lt;/span&gt; the term “agency” means agency as...
675675
&lt;li&gt;&lt;span class='marker'&gt;(2)&lt;/span&gt; the term “individual” means a citizen...
676676
&lt;/ol&gt;
@@ -684,7 +684,7 @@ <h3 class="heading settled heading" data-level=7.1 id=position-marker><span clas
684684
</pre>
685685
<p> The preceding document should render something like this:
686686

687-
<pre> (a) Definitions.— For purposes of this section—<wbr></wbr>(1) the term “agency” means agency as...
687+
<pre> (a) Definitions.— For purposes of this section—<wbr>(1) the term “agency” means agency as...
688688
(2) the term “individual” means a citizen...
689689
(b) Conditions of Disclosure.— No agency shall disclose...
690690
(1) to those officers and employees of the agency...
@@ -1268,6 +1268,15 @@ <h2 class="heading settled heading" data-level=10 id=ua-stylesheet><span class=s
12681268
counter-increment: none; /* Turn off default increase */
12691269
}
12701270

1271+
/* Handling reversed lists */
1272+
ol[reversed] {
1273+
/* Do a counter-reset for one greater than
1274+
the number of child &lt;li&gt; elements */
1275+
}
1276+
ol[reversed] &gt; li {
1277+
counter-increment: list-item -1;
1278+
}
1279+
12711280
/* Box Model Rules */
12721281
ol, ul {
12731282
display: block;

css-lists/Overview.src.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,6 +1306,15 @@ <h2 id='ua-stylesheet'>
13061306
counter-increment: none; /* Turn off default increase */
13071307
}
13081308

1309+
/* Handling reversed lists */
1310+
ol[reversed] {
1311+
/* Do a counter-reset for one greater than
1312+
the number of child &lt;li> elements */
1313+
}
1314+
ol[reversed] > li {
1315+
counter-increment: list-item -1;
1316+
}
1317+
13091318
/* Box Model Rules */
13101319
ol, ul {
13111320
display: block;

0 commit comments

Comments
 (0)