Skip to content

Commit 45d4b6d

Browse files
committed
Rewrite the 'defining a list item' section.
1 parent 4a02921 commit 45d4b6d

2 files changed

Lines changed: 52 additions & 44 deletions

File tree

css3-lists/Overview.html

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525

2626
<h1>CSS Lists and Counters Module Level 3</h1>
2727

28-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 17 August 2012</h2>
28+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 18 August 2012</h2>
2929

3030
<dl>
3131
<dt>This version:
3232

33-
<dd><!--<a href="http://www.w3.org/TR/2012/WD-css3-lists-20120817">http://www.w3.org/TR/2012/WD-css3-lists-20120817</a>-->
33+
<dd><!--<a href="http://www.w3.org/TR/2012/WD-css3-lists-20120818">http://www.w3.org/TR/2012/WD-css3-lists-20120818</a>-->
3434
<a
3535
href="http://dev.w3.org/csswg/css3-lists/">http://dev.w3.org/csswg/css3-lists/</a>
3636

@@ -346,28 +346,22 @@ <h2 id=introduction><span class=secno>1. </span> Introduction</h2>
346346
<h2 id=declaring-a-list-item><span class=secno>2. </span> Declaring a List
347347
Item</h2>
348348

349-
<p>To declare a <dfn id=list-item>list item</dfn>, the ‘<code
350-
class=property>display</code>’property must be set to ‘<code
351-
class=css>list-item</code>’ or ‘<a href="#inline-list-item"><code
352-
class=css>inline-list-item</code></a>’ (defined later in this section).
353-
This, in addition to generating a ‘<code
354-
class=css>::marker</code>’pseudo-element and enabling the properties
355-
described below for that element, causes that element to increment the
356-
list item counter ‘<code class=css>list-item</code>’: if the element
357-
doesn't otherwise have a ‘<a href="#counter-increment"><code
358-
class=property>counter-increment</code></a>’ declaration, it must act as
359-
if ‘<code class=css>counter-increment: list-item</code>’ were
360-
specified. (This does not affect the specified or computed values of the
361-
counter properties.)
362-
363-
<p>The ‘<code class=css>list-item</code>’ counter is a real counter,
364-
and can be directly affected using the ‘<a
365-
href="#counter-increment"><code
366-
class=property>counter-increment</code></a>’ and ‘<a
367-
href="#counter-reset"><code class=css>counter-reset</code></a>
368-
properties. It can also be used in the ‘<code
369-
class=css>counter()</code>’ and ‘<code class=css>counters()</code>
370-
functions.
349+
<p> A <dfn id=list-item title="list item|list items">list item</dfn> is any
350+
element with its ‘<code class=property>display</code>’ property set to
351+
<code class=css>list-item</code>’ or ‘<a
352+
href="#inline-list-item"><code class=css>inline-list-item</code></a>’.
353+
<a href="#list-item"><i>List items</i></a> generate ‘<code
354+
class=css>::marker</code>’ pseudo-elements; no other elements do.
355+
356+
<p> Additionally, <a href="#list-item"><i>list items</i></a> automatically
357+
increment the special ‘<code class=css>list-item</code>
358+
<i>counter</i>. Unless the ‘<a href="#counter-increment"><code
359+
class=property>counter-increment</code></a>’ property manually specifies
360+
a different increment for the ‘<code class=css>list-item</code>
361+
<i>counter</i>, it must be incremented by 1 on every <a
362+
href="#list-item"><i>list item</i></a>, at the same time that
363+
<i>counters</i> are normally incremented. (This has no effect on the
364+
values of the ‘<code class=css>counter-*</code>’ properties.)
371365

372366
<table class=propdef>
373367
<tbody>
@@ -412,15 +406,18 @@ <h2 id=declaring-a-list-item><span class=secno>2. </span> Declaring a List
412406
<td>same as CSS2.1
413407
</table>
414408

415-
<p>The ‘<a href="#inline-list-item"><code
409+
<p> The ‘<a href="#inline-list-item"><code
416410
class=css>inline-list-item</code></a>’ display value makes the element a
417-
list item, which means it can generate a <code class=css>::marker</code>
418-
pseudo-element. The element also affects the predefined ‘<code
419-
class=css>list-item</code>’ counter, as specified above. Otherwise, this
420-
display value is treated identically to ‘<code
411+
<a href="#list-item"><i>list item</i></a>, with the effects described
412+
above. Additionally, the ‘<a href="#outside"><code
413+
class=css>outside</code></a>’ value of ‘<a
414+
href="#list-style-position"><code
415+
class=property>list-style-position</code></a>’ computes to ‘<a
416+
href="#inside"><code class=css>inside</code></a>’ on this element.
417+
Otherwise, this display value is treated identically to ‘<code
421418
class=css>inline</code>’.
422419

423-
<p class=note>This display value is silly, and only necessary because we
420+
<p class=note> This display value is silly, and only necessary because we
424421
haven't yet defined ‘<code class=property>display</code>’ to be split
425422
into subproperties. When that happens, "being a list item" will just be a
426423
property value that can apply to block, inline, and other elements.
@@ -3576,6 +3573,9 @@ <h2 class=no-num id=index>Index</h2>
35763573
<li>list item positioning edge, <a href="#list-item-positioning-edge"
35773574
title="list item positioning edge"><strong>7.1.</strong></a>
35783575

3576+
<li>list items, <a href="#list-item"
3577+
title="list items"><strong>2.</strong></a>
3578+
35793579
<li>list-style, <a href="#list-style"
35803580
title=list-style><strong>5.</strong></a>
35813581

css3-lists/Overview.src.html

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,17 @@ <h2>
133133
<h2>
134134
Declaring a List Item</h2>
135135

136-
<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.)
137-
138-
<p>The ''list-item'' counter is a real counter,
139-
and can be directly affected using the 'counter-increment' and ''counter-reset''
140-
properties. It can also be used in the ''counter()'' and ''counters()'' functions.
136+
<p>
137+
A <dfn title="list item|list items">list item</dfn> is any element with its 'display' property set to ''list-item'' or ''inline-list-item''.
138+
<i>List items</i> generate ''::marker'' pseudo-elements;
139+
no other elements do.
141140

141+
<p>
142+
Additionally, <i>list items</i> automatically increment the special ''list-item'' <i>counter</i>.
143+
Unless the 'counter-increment' property manually specifies a different increment for the ''list-item'' <i>counter</i>,
144+
it must be incremented by 1 on every <i>list item</i>,
145+
at the same time that <i>counters</i> are normally incremented.
146+
(This has no effect on the values of the 'counter-*' properties.)
142147

143148
<table class="propdef">
144149
<tbody>
@@ -169,15 +174,18 @@ <h2>
169174
</tbody>
170175
</table>
171176

172-
<p>The ''inline-list-item'' display value makes the element a list item,
173-
which means it can generate a <code class=css>::marker</code> pseudo-element. The element also
174-
affects the predefined ''list-item'' counter, as specified above. Otherwise,
175-
this display value is treated identically to ''inline''.
176-
177-
<p class='note'>This display value is silly, and only necessary because we
178-
haven't yet defined 'display' to be split into subproperties. When that
179-
happens, "being a list item" will just be a property value that can apply
180-
to block, inline, and other elements.
177+
<p>
178+
The ''inline-list-item'' display value makes the element a <i>list item</i>,
179+
with the effects described above.
180+
Additionally, the ''outside'' value of 'list-style-position'
181+
computes to ''inside'' on this element.
182+
Otherwise, this display value is treated identically to ''inline''.
183+
184+
<p class='note'>
185+
This display value is silly,
186+
and only necessary because we haven't yet defined 'display' to be split into subproperties.
187+
When that happens,
188+
"being a list item" will just be a property value that can apply to block, inline, and other elements.
181189

182190
<!-- ====================================================================== -->
183191

0 commit comments

Comments
 (0)