Skip to content

Commit 593ecee

Browse files
committed
[css2] Edits by Håkon and Tantek.
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402248
1 parent 9267905 commit 593ecee

4 files changed

Lines changed: 57 additions & 50 deletions

File tree

css2/fonts.src

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
22
"http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd">
33
<html lang="en">
4-
<!-- $Id: fonts.src,v 2.77 2003-08-24 20:03:42 bbos Exp $ -->
4+
<!-- $Id: fonts.src,v 2.78 2004-04-01 13:01:21 bbos Exp $ -->
55
<head>
66
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
77
<title>Fonts</title>
88
<meta name="editor" lang="tr" content="Tantek &Ccedil;elik">
9-
<!-- Changed by: Tantek Celik, 2003-06-24 -->
9+
<!-- Changed by: Tantek Celik, 2004-03-29 -->
1010
<style type="text/css">
1111
#AutoNumber2 td { text-align:center }
1212
</style>
@@ -58,7 +58,7 @@ complete set of properties, the UA uses the 'font-family' property to
5858
choose a tentative font family. The remaining properties are tested
5959
against the family according to the matching criteria described with
6060
each property. If there are matches for all the remaining properties,
61-
then that is the matching font face for the given element.
61+
then that is the matching font face for the given element or character.
6262
</li>
6363
<li>If there is no matching font face within the 'font-family' being
6464
processed by step 2, and if there is a next alternative 'font-family'

css2/generate.src

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
55
<title>Generated content, automatic numbering, and lists</title>
6-
<!-- Changed by Kimberly Blessing, 2004-02-13 -->
76
</head>
87
<body>
98
<h1 align="center">
@@ -199,7 +198,7 @@ class="value-inst-no-open-quote"><strong>no-open-quote</strong></span></span>
199198
and <span class="index-inst" title="no-close-quote"><span
200199
class="value-inst-no-close-quote"><strong>no-close-quote</strong></span></span>
201200

202-
<dd>Same as 'none', but increments (decrements) the level of nesting for quotes.
201+
<dd>Introduces no content, but increments (decrements) the level of nesting for quotes.
203202

204203
<dt><span class="index-def" title="attr()"><strong>attr(X)</strong></span>
205204
<dd>This function returns as a string the value of attribute X
@@ -212,8 +211,7 @@ attribute values for other elements than the subject of the selector.
212211
</dl>
213212

214213
<P>The <span class="propinst-display">'display'</span> property
215-
controls whether the content is placed in a block, inline, or marker
216-
box.
214+
controls whether the content is placed in a block or inline box.
217215

218216
<div class="example"><p>The following rule causes the string "Chapter: " to be generated before each H1 element:</p>
219217

@@ -456,12 +454,6 @@ one optionally followed by an integer. The integer gives the value that
456454
the counter is set to on each occurrence of the element. The default
457455
is 0.
458456

459-
<p>If <span
460-
class="propinst-counter-increment">'counter-increment'</span> refers
461-
to a counter that is not in the <a href="#scope">scope (see below</a>) of any
462-
<span class="propinst-counter-reset">'counter-reset'</span>, the
463-
counter is assumed to have been reset to 0 by the root element.
464-
465457
<div class="example">
466458
<p>This example shows a way to number chapters and sections with
467459
"Chapter 1", "1.1", "1.2", etc.
@@ -505,11 +497,12 @@ H1 { counter-reset: section -1 imagenum 99 }
505497

506498
<h3><a name="scope">Nested counters and scope</a></h3>
507499

508-
<p>Counters are "self-nesting", in the sense that re-using a counter
509-
in a child element automatically creates a new instance of the
510-
counter. This is important for situations like lists in HTML, where
511-
elements can be nested inside themselves to arbitrary depth. It would
512-
be impossible to define uniquely named counters for each level.
500+
<p>Counters are "self-nesting", in the sense that resetting a counter
501+
in a descendant element automatically creates a new instance of
502+
the counter. This is important for situations like lists in HTML,
503+
where elements can be nested inside themselves to arbitrary depth.
504+
It would be impossible to define uniquely named counters for each
505+
level.
513506

514507
<div class="example">
515508
<p>Thus, the following suffices to number nested list items. The
@@ -523,12 +516,18 @@ LI:before { content: counter(item) ". "; counter-increment: item }
523516
</pre>
524517
</div>
525518

526-
<p>The self-nesting is based on the principle that every element that
527-
has a <span class="propinst-counter-reset">'counter-reset'</span> for
528-
a counter X, creates a fresh counter X, the <span class="index-def"
529-
title="scope"><dfn>scope</dfn></span> of which is the element, its
530-
following siblings, and all the descendants of the element and its
531-
following siblings.
519+
<p>The <span class="index-def" title="scope"><dfn>scope</dfn></span>
520+
of a counter starts at the first element in the document that has a
521+
<span class="propinst-counter-reset">'counter-reset'</span> for that
522+
counter and includes the element's descendants and its following
523+
siblings with their descendants.
524+
525+
<p>If <span
526+
class="propinst-counter-increment">'counter-increment'</span> or <span
527+
class="propinst-content">'content'</span> refers to a counter that is
528+
not in the scope of any <span
529+
class="propinst-counter-reset">'counter-reset'</span>, the counter is
530+
assumed to have been reset to 0 by the root element.
532531

533532
<p>In the example above, an OL will create a counter, and all children
534533
of the OL will refer to that counter.
@@ -549,24 +548,25 @@ counters. (We assume the style sheet as given in the example above).
549548
&lt;LI&gt;item &lt;!-- increment item[1] (= 3) --&gt;
550549
&lt;OL&gt; &lt;!-- (set item[2] to 0 --&gt;
551550
&lt;LI&gt;item &lt;!-- increment item[2] (= 1) --&gt;
552-
&lt;/OL&gt; &lt;!-- ) --&gt;
553-
&lt;OL&gt; &lt;!-- (set item[3] to 0 --&gt;
554-
&lt;LI&gt; &lt;!-- increment item[3] (= 1) --&gt;
551+
&lt;/OL&gt; &lt;!-- --&gt;
552+
&lt;OL&gt; &lt;!-- set item[2] to 0 --&gt;
553+
&lt;LI&gt;item &lt;!-- increment item[2] (= 1) --&gt;
555554
&lt;/OL&gt; &lt;!-- ) --&gt;
556555
&lt;LI&gt;item &lt;!-- increment item[1] (= 4) --&gt;
557556
&lt;/OL&gt; &lt;!-- ) --&gt;
558557
&lt;LI&gt;item &lt;!-- increment item[0] (= 3) --&gt;
559558
&lt;LI&gt;item &lt;!-- increment item[0] (= 4) --&gt;
560-
&lt;/OL&gt; &lt;!-- ) --&gt;
561-
&lt;OL&gt; &lt;!-- (reset item[4] to 0 --&gt;
562-
&lt;LI&gt;item &lt;!-- increment item[4] (= 1) --&gt;
563-
&lt;LI&gt;item &lt;!-- increment item[4] (= 2) --&gt;
564-
&lt;/OL&gt; &lt;!-- ) --&gt;
559+
&lt;/OL&gt; &lt;!-- --&gt;
560+
&lt;OL&gt; &lt;!-- reset item[0] to 0 --&gt;
561+
&lt;LI&gt;item &lt;!-- increment item[0] (= 1) --&gt;
562+
&lt;LI&gt;item &lt;!-- increment item[0] (= 2) --&gt;
563+
&lt;/OL&gt; &lt;!-- --&gt;
565564
</pre>
566565
</div>
567566

568-
<p>The 'counters()' function generates a string composed of
569-
the values of all counters with the same name, separated by a given string.
567+
<p>The 'counters()' function generates a string composed of the values
568+
of all counters with the same name on the element and its ancestors,
569+
separated by a given string.
570570

571571
<div class="example"><P>
572572
<P>The following style sheet numbers nested list items

css2/media.src

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: media.src,v 2.34 2004-02-18 01:06:27 bbos Exp $ -->
3+
<!-- $Id: media.src,v 2.35 2004-04-01 13:01:22 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Media types</TITLE>
7-
<!-- Changed by Kimberly Blessing, 2004-02-13 -->
87
</HEAD>
98
<BODY>
109
<H1>Media types</H1>
@@ -170,12 +169,18 @@ resolution, color, limited-scrollability screens, sound available).
170169

171170
<P>Media type names are case-insensitive.
172171

173-
<P>Media types are mutually exclusive in the sense that a user agent
174-
can only support one media type when rendering a document. However,
175-
user agents may have different modes which support different media
176-
types.
172+
<P>Media types are mutually exclusive in the sense that a user agent can
173+
only support one media type when rendering a document. However, user
174+
agents may use different media types on different canvases. For
175+
example, a document may (simultaneously) be shown in 'screen' mode on
176+
one canvas and 'print' mode on another canvas.
177177

178-
<P>Unknown media type names should not result in the @media rule being ignored.
178+
<p>Note that a multimodal media type is still only one media
179+
type. The 'tv' media type, for example, is a multimodal media
180+
type that renders both visually and aurally to a single canvas.
181+
182+
183+
<P>Unknown media type names must not result in the @media rule being ignored.
179184

180185
<!--
181186
<P>Due to rapidly changing technologies, CSS2 does not specify a

css2/text.src

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
22
"http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd">
33
<html lang="en">
4-
<!-- $Id: text.src,v 2.43 2004-02-10 17:23:55 bbos Exp $ -->
4+
<!-- $Id: text.src,v 2.44 2004-04-01 13:01:22 bbos Exp $ -->
55
<head>
66
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
77
<title>Text</title>
88
<meta http-equiv="Content-Style-Type" content="text/css">
99
<meta name="editor" lang="tr" content="Tantek &Ccedil;elik">
10-
<!-- Changed by: Tantek Celik, 2004-02-09 -->
10+
<!-- Changed by: Tantek Celik, 2004-03-29 -->
1111
<style type="text/css">
1212
.current,.proposed,span.delcurrent { background:#feb }
1313
ins.proposed,span.insproposed { background:#bfb }
@@ -379,8 +379,7 @@ class="propinst-white-space">'white-space'</span> property</h2>
379379

380380
<!-- #include src=properties/white-space.srb -->
381381

382-
<p> This property declares how <a
383-
href="syndata.html#whitespace">whitespace</a> inside the element is
382+
<p> This property declares how whitespace inside the element is
384383
handled. Values have the following meanings:</p>
385384

386385

@@ -434,9 +433,10 @@ performed, ignoring bidi formatting characters as if they were not
434433
there:
435434
</p>
436435
<ol>
437-
<li>Each non-linefeed whitespace character surrounding a linefeed
438-
character is removed if 'white-space' is set to 'normal',
439-
'no-wrap', or 'pre-line'.
436+
<li>
437+
Each tab (U+0009), carriage return (U+000D), or space (U+0020)
438+
character surrounding a linefeed (U+000A) character is removed if
439+
'white-space' is set to 'normal', 'no-wrap', or 'pre-line'.
440440
</li>
441441
<li>If 'white-space' is set to 'pre' or 'pre-wrap', any sequence of
442442
spaces (U+0020) unbroken by an element boundary is treated as a
@@ -514,8 +514,10 @@ algorithm, with the end result being:
514514
</pre>
515515
<p>
516516
Note that there are two spaces between A and B, and none between B
517-
and C. This is best avoided by using the natural bidirectionality
518-
of characters instead of explicit embedding levels.
517+
and C. This can sometimes be avoided by using the natural bidirectionality
518+
of characters instead of explicit embedding levels. Also, it is good
519+
to avoid spaces immediately inside start and end tags, as these tend
520+
to do weird things when dealing with white space collapsing.
519521
</p>
520522

521523
</body>

0 commit comments

Comments
 (0)