Skip to content

Commit c3032d4

Browse files
committed
[css-lists-3] Fix examples.
1 parent ac5c9ac commit c3032d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

css-lists-3/Overview.bs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ The Implicit ''list-item'' Counter</h3>
10751075
In the following example,
10761076
the list is modified to count by twos:
10771077
<pre>
1078-
ol.evens { counter-increment: list-item 2; }
1078+
ol.evens > li { counter-increment: list-item 2; }
10791079
</pre>
10801080
A three-item list would be rendered as
10811081
<pre>
@@ -1104,7 +1104,7 @@ The Implicit ''list-item'' Counter</h3>
11041104
that hooks into the ''counter-increment/list-item'' counter,
11051105
and thus respects any numbering changes inflicted through HTML:
11061106
<pre>
1107-
ol::marker { content: counters(list-item,'.') '.'; }
1107+
ol > li::marker { content: counters(list-item,'.') '.'; }
11081108
</pre>
11091109
Nested lists using this rule would be rendered like
11101110
<pre>

0 commit comments

Comments
 (0)