@@ -28,7 +28,7 @@ spec:css-pseudo-4; type:selector; text:::before
28
28
Introduction</h2>
29
29
30
30
This specification defines the ''::marker'' pseudo-element,
31
- the ''list-item'' 'display ' value that generates markers,
31
+ the ''display: list-item'' value that generates markers,
32
32
and several properties controlling the placement and styling of markers.
33
33
34
34
It also defines <a>counters</a> ,
@@ -69,20 +69,11 @@ Introduction</h2>
69
69
<h2 id='declaring-a-list-item'>
70
70
Declaring a List Item</h2>
71
71
72
- A <dfn export>list item</dfn> is any element with its 'display' property set to ''list-item'' .
72
+ A <dfn export>list item</dfn> is any element with its 'display' property set to ''display/ list-item'' .
73
73
<a>List items</a> generate ''::marker'' pseudo-elements;
74
74
no other elements do.
75
-
76
- Additionally, <a>list items</a> automatically increment the special ''list-item'' <a>counter</a> .
77
- Unless the 'counter-increment' property manually specifies a different increment for the ''list-item'' <a>counter</a> ,
78
- it must be incremented by 1 on every <a>list item</a> ,
79
- at the same time that <a>counters</a> are normally incremented.
80
- (This has no effect on the values of the 'counter-*' properties.)
81
-
82
- If a <a>list item</a> generates an <a>inline box</a> ,
83
- such as through ''display: inline list-item'' ,
84
- the ''outside'' value of 'list-style-position'
85
- must compute to ''inside'' on the element.
75
+ Additionally, <a>list items</a> automatically increment an implied ''list-item'' <a>counter</a>
76
+ (see [[#list-item-counter]] ).
86
77
87
78
<!--
88
79
██ ██ ███ ████████ ██ ██ ████████ ████████ ██████
@@ -808,6 +799,19 @@ Manipulating Counters: the 'counter-increment', 'counter-set' and 'counter-reset
808
799
The same principles apply to the 'counter-set' and 'counter-increment' properties.
809
800
</div>
810
801
802
+ <h3 id="list-item-counter">
803
+ The special ''list-item'' counter</h3>
804
+
805
+ <a>List items</a> automatically increment
806
+ a special <dfn value for="counter-increment, counter-set, counter-reset, counter(), counters()">list-item</dfn> <a>counter</a> .
807
+ Unless the 'counter-increment' property explicitly specifies
808
+ a different increment for the ''list-item'' <a>counter</a> ,
809
+ it must be incremented by 1 on every <a>list item</a> ,
810
+ at the same time that <a>counters</a> are normally incremented.
811
+ (This has no effect on the values of the 'counter-*' properties.)
812
+
813
+ Issue: More definition.
814
+
811
815
812
816
<h3 id="creating-counters">
813
817
Creating and Inheriting Counters</h3>
@@ -1344,7 +1348,7 @@ This section documents the changes since previous publications.
1344
1348
1345
1349
Use <<custom-ident>> consistently for counter names.
1346
1350
1347
- <h3>Changes From CSS2.1</h3>
1351
+ <h3 id="changes-from-css2" >Changes From CSS2.1</h3>
1348
1352
1349
1353
<p> As described in the introduction section, there are significant changes in this module when
1350
1354
compared to CSS2.1.
@@ -1354,6 +1358,6 @@ Use <<custom-ident>> consistently for counter names.
1354
1358
1355
1359
<li> 'list-style-type' now accepts a <<string>> .
1356
1360
1357
- <li> The list-item predefined counter identifier has been introduced.
1361
+ <li> The ''counter-set/ list-item'' predefined counter identifier has been introduced.
1358
1362
</ol>
1359
1363
0 commit comments