Skip to content

Commit 969d4be

Browse files
committed
[css2] Edits to bring up-to-date with visuren and visudet, uniform value description lists
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%40644
1 parent 8f26876 commit 969d4be

5 files changed

Lines changed: 422 additions & 334 deletions

File tree

css2/generate.src

Lines changed: 36 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,25 @@
1111
<h1 align="center">
1212
<a name="generated-text">Generated content and automatic numbering</a></h1>
1313

14-
<p>[Note: no system for automatic numbering has been agreed upon yet]
15-
16-
<p>For a readable display of a document, it may sometimes be necessary
17-
for the user agent to render text or images that are not part of the
18-
source document. For example, the user agent may insert the word
14+
<p>In some cases, authors may want user agents to display content
15+
that does not come from the <a href="conform.html#doctree">document
16+
tree</a>. One familiar example of this is a numbered list; the author
17+
does not want to list the numbers explicitly, he or she wants the
18+
user agent to generate them automatically. Similarly, authors
19+
may want the user agent to insert the word
1920
"Figure" before the caption of a figure, or "Chapter 7" before the
2021
seventh chapter title. For audio or braille in particular, user agents
2122
should be able to insert these strings.
2223

23-
<p>The inserted content can consist of fixed strings (e.g., "Figure"),
24-
fixed images (such as an icon: <img id="caution-img" src="images/caution.gif"
25-
alt="caution icon">), or counters that automatically
26-
increment. Combinations are also possible ("Chapter 7").
24+
<p>In CSS2, inserted content can consist of combinations
25+
of the following:</p>
26+
27+
<ul>
28+
<li>fixed strings (e.g., "Figure"),</li>
29+
<li>fixed images (such as an icon: <img id="caution-img"
30+
src="images/caution.gif" alt="caution icon">),</li>
31+
<li>counters that are automatically incremented.</li>
32+
</ul>
2733

2834
<P>Below we describe the mechanisms CSS2 offers
2935
for specifying generated content.
@@ -42,8 +48,8 @@ inheritable properties from the element to which they are
4248
attached.</p>
4349

4450
<div class=example>
45-
<p>For example, the following style rule inserts a quote before and
46-
after every Q element. The color of the quote will be red, but the
51+
<p>For example, the following rule inserts a double quote mark
52+
before and after every Q element. The color of the quote will be red, but the
4753
font will be the same as the font of the rest of the Q element:</p>
4854

4955
<pre>
@@ -54,18 +60,17 @@ Q:before, Q:after {
5460
</pre>
5561
</div>
5662

57-
<p>Non-inherited properties have their <a
58-
href="cascade.html#initial-value">initial value</a>, except for the
59-
<span class="propinst-display">'display'</span> property, which, by
60-
default, will have the value 'inline' in a :before or :after
61-
pseudo-element, whereas its normal initial value is 'block'.</p>
63+
<p>In a :before or :after pseudo-element declaration, non-inherited
64+
properties take their <a href="cascade.html#initial-value">initial
65+
value</a>.</p>
6266

6367
<div class=example>
64-
<p>Because of this, the quote in the previous example is inserted as
65-
an inline box, and not above (or below) the content of the Q. The next
66-
example explicitly sets the <span
67-
class="propinst-display">'display'</span> property to 'block', so that
68-
the inserted text becomes a block:</p>
68+
<p>Because the initial value of the <span
69+
class="propinst-display">'display'</span> property is 'inline', the
70+
quote in the previous example is inserted as an inline box, and not
71+
above (or below) the content of the Q. The next example explicitly
72+
sets the <span class="propinst-display">'display'</span> property to
73+
'block', so that the inserted text becomes a block:</p>
6974

7075
<pre>
7176
BODY:after {
@@ -85,15 +90,17 @@ parts are laid out as inline boxes inside the element.</p>
8590

8691
<P>The values have the following meanings:</p>
8792

88-
<ul>
89-
<li><span class="index-def" title="&lt;string&gt;, definition of"><a
90-
name="value-def-string">&lt;string&gt;</a></span>: ???
91-
<li><span class="index-def" title="&lt;counter&gt;, definition of"><a
92-
name="value-def-counter">&lt;counter&gt;</a></span>: ???
93-
</ul>
93+
<dl>
94+
<dt><span class="index-def" title="&lt;string&gt;, definition of"><a
95+
name="value-def-string"><strong>&lt;string&gt;</strong></a></span>
96+
<dd>??
97+
<dt><span class="index-def" title="&lt;counter&gt;, definition of"><a
98+
name="value-def-counter"><strong>&lt;counter&gt;</strong></a></span>
99+
<dd>??
100+
</dl>
94101

95102
<div class=note>
96-
<p><em><strong>Note.</strong> In a future level of CSS, the <span
103+
<p><em><strong>Note.</strong> In future levels of CSS, the <span
97104
class="propinst-content">'content'</span> property may accept
98105
additional values, allowing it to vary the style of the generated
99106
content, but in CSS2 the content of the :before or :after
@@ -105,7 +112,7 @@ pseudo-element is all in one style.
105112
"�"} doesn't work. How about Q:fr-fr:before {content: "�"} ? or @lang
106113
fr-fr {Q:before{content: "�"}} ?]</p>
107114

108-
<h2>Automatic counters</h2>
115+
<h2>Automatic counters and numbering</h2>
109116

110117
<P><em>This is a placeholder.</em>
111118

css2/lists.src

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: lists.src,v 1.16 1998-01-14 17:46:34 ijacobs Exp $ -->
3+
<!-- $Id: lists.src,v 1.17 1998-01-15 17:09:28 ijacobs Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Lists</TITLE>
@@ -30,17 +30,24 @@ it's possible to specify different marker types depending on the depth
3030
of embedded lists.
3131
</ul>
3232

33-
<P>Elements with a <span class="propinst-display">'display'</span>
34-
property value of 'list-item' are formatted visually like other block-level elements, only each list item is preceded by a marker. The type
35-
of marker and its placement is determined by the <a
36-
href="#list-props">list properties</a> described below.
33+
<P>An element with a <span class="propinst-display">'display'</span>
34+
property value of 'list-item' generates two boxes: a <a
35+
href="visuren.html#block-level">block-level</a> box that contains its
36+
content and an inline box that contains a marker. Only the content box
37+
is involved with positioning (e.g, in the <a
38+
href="visuren.html#normal-flow">normal flow</a>). The position of the
39+
marker box (see the <span
40+
class="propinst-list-style-position">'list-style-position'</span>
41+
property) does not affect the position of the content box. CSS
42+
properties allow authors to specify the marker type (image, glyph, or
43+
number) and its position with respect to the content box (outside the
44+
content or at the beginning of content).
3745

3846
<div class="html-example"><P>
39-
The following rule applies to list item (LI) elements in HTML. The
40-
<span class="propinst-display">'display'</span> property declares
41-
the presentation of the LI element to be a "list-item", and the <span
42-
class="propinst-list-style">'list-style'</span> property means that no
43-
marker will appear next to list items:
47+
The declaration in the following HTML program causes LI elements to
48+
generated 'list-item' boxes. The <span
49+
class="propinst-list-style">'list-style'</span> value 'none' suppresses
50+
preceding markers.
4451

4552
<PRE>
4653
&lt;HTML&gt;
@@ -64,8 +71,8 @@ marker will appear next to list items:
6471
<P><img src="./images/list-none.gif" alt="A list with no markers."></p>
6572

6673
<P>The illustration shows the relationship between the current left
67-
margin and the margins and padding of the list element (UL) and the
68-
list items (LI). (The lines delimiting the margins and padding are not
74+
margin and the margins and padding of the list (UL) box and the list
75+
item (LI) boxes. (The lines delimiting the margins and padding are not
6976
rendered).
7077

7178
<P>If we change the <span
@@ -76,8 +83,9 @@ LI { display: list-item; list-style: square }
7683
</PRE>
7784

7885
<P> each list item will be preceded by a small square. However, the
79-
placement of the square does not affect the block formatting of the
80-
list item content:</P>
86+
placement of the square does not affect the <a
87+
href="visuren.html#block-formatting">block formatting</a> of the list
88+
item box:</P>
8189

8290
<p><img src="./images/list-square.gif" alt="A list with square markers."></p>
8391
</div>
@@ -103,12 +111,12 @@ and <span class="propinst-list-style">'list-style'</span>
103111

104112
<!-- #include src=properties/list-style-type.srb -->
105113

106-
<P> This property is used to determine the appearance of the
107-
list item marker if <span
108-
class="propinst-list-style-image">'list-style-image'</span> is 'none'
109-
or if the image pointed to by the URI cannot be displayed.
114+
<P> This property specifies appearance of the list item marker if
115+
<span class="propinst-list-style-image">'list-style-image'</span> has
116+
the value 'none' or if the image pointed to by the URI cannot be
117+
displayed.
110118

111-
<P>The possible values have the following meanings:
119+
<P>Values have the following meanings:</p>
112120
<dl>
113121
<dt><strong>disc</strong>
114122
<dd>A disc (exact presentation is UA-dependent)
@@ -161,7 +169,7 @@ iii This is the third item.
161169
<!-- #include src=properties/list-style-image.srb -->
162170

163171
<P> This property sets the image that will be used as the list item
164-
marker. When the image is available it will replace the marker set
172+
marker. When the image is available, it will replace the marker set
165173
with the <span
166174
class="propinst-list-style-type">'list-style-type'</span> marker.
167175

@@ -177,24 +185,19 @@ item to be the image "ellipse.png".
177185

178186
<!-- #include src=properties/list-style-position.srb -->
179187

180-
<P> The value of <span
181-
class="propinst-list-style-position">'list-style-position'</span>
182-
determines how the list item marker is drawn with regard to the
183-
content.
188+
<P> This property specifies the position of the marker
189+
box with respect to line item content box. Values have the
190+
following meanings:</p>
184191

185192
<dl>
186193
<dt><strong>outside</strong>
187194
<dd>The list item marker is outside the box that is generated for the
188195
list item.
189196
<dt><strong>inside</strong>
190-
<dd>The list item marker is the first part of the box that is generated for the
191-
list item. The list item's contents flow after the marker.
197+
<dd>The list item marker is the first inline box generated for the
198+
list item. The list item's contents flow after the marker box.
192199
</dl>
193200

194-
<P>In either case, the placement of the marker does not affect
195-
the relationship between the list item's box and the pertinent margin
196-
(depending on script direction).
197-
198201
<div class="html-example"><P>
199202
For example:
200203

@@ -308,7 +311,7 @@ UL elements to LI elements. This is the recommended way to
308311
specify list style information.
309312

310313
<div class="example"><P>
311-
<P> A URI value can be combined with any other value, as in:
314+
<P> A URI value may be combined with any other value, as in:
312315

313316
<PRE>
314317
UL { list-style: url(http://png.com/ellipse.png) disc }

0 commit comments

Comments
 (0)