Skip to content

Commit 1ec30d3

Browse files
committed
Specified exactly what it means for display:list-item to increment the list-item counter.
1 parent 3c68e78 commit 1ec30d3

2 files changed

Lines changed: 10 additions & 13 deletions

File tree

css3-lists/Overview.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -339,16 +339,19 @@ <h2 id=declaring-a-list-item><span class=secno>2. </span> Declaring a List
339339
Item</h2>
340340

341341
<p>To declare a <dfn id=list-item>list item</dfn>, the &lsquo;<code
342-
class=property>display</code>&rsquo; property must be set to &lsquo;<code
342+
class=property>display</code>&rsquo;property must be set to &lsquo;<code
343343
class=css>list-item</code>&rsquo; or &lsquo;<a
344344
href="#inline-list-item"><code
345345
class=css>inline-list-item</code></a>&rsquo; (defined later in this
346-
section). This, in addition to generating a <code
347-
class=css>::marker</code> pseudo-element and enabling the properties
346+
section). This, in addition to generating a &lsquo;<code
347+
class=css>::marker</code>&rsquo;pseudo-element and enabling the properties
348348
described below for that element, causes that element to increment the
349-
list item counter &lsquo;<code class=css>list-item</code>&rsquo;. (This
350-
does not affect the specified or computed values of the counter
351-
properties.)
349+
list item counter &lsquo;<code class=css>list-item</code>&rsquo;: if the
350+
element doesn't otherwise have a &lsquo;<a href="#counter-increment"><code
351+
class=property>counter-increment</code></a>&rsquo; declaration, it must
352+
act as if &lsquo;<code class=css>counter-increment:
353+
list-item</code>&rsquo; were specified. (This does not affect the
354+
specified or computed values of the counter properties.)
352355

353356
<p>The &lsquo;<code class=css>list-item</code>&rsquo; counter is a real
354357
counter, and can be directly affected using the &lsquo;<a

css3-lists/Overview.src.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,7 @@ <h2>
129129
<h2>
130130
Declaring a List Item</h2>
131131

132-
<p>To declare a <dfn>list item</dfn>, the 'display'
133-
property must be set to ''list-item'' or ''inline-list-item'' (defined
134-
later in this section). This, in addition to generating a <code class=css>::marker</code>
135-
pseudo-element and enabling the properties described below for that element,
136-
causes that element to increment the list item counter ''list-item''.
137-
(This does not affect the specified or computed values of the counter
138-
properties.)</p>
132+
<p>To declare a <dfn>list item</dfn>, the 'display'property must be set to ''list-item'' or ''inline-list-item'' (defined later in this section). This, in addition to generating a ''::marker''pseudo-element and enabling the properties described below for that element, causes that element to increment the list item counter ''list-item'': if the element doesn't otherwise have a 'counter-increment' declaration, it must act as if ''counter-increment: list-item'' were specified. (This does not affect the specified or computed values of the counter properties.)</p>
139133

140134
<p>The ''list-item'' counter is a real counter,
141135
and can be directly affected using the 'counter-increment' and ''counter-reset''

0 commit comments

Comments
 (0)