Skip to content

Commit 334a1a9

Browse files
committed
[css2] Edits by Hakon and some edits by me, during ftf
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402192
1 parent 7c87a14 commit 334a1a9

9 files changed

Lines changed: 108 additions & 93 deletions

File tree

css2/about.src

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
'http://www.w3.org/TR/html4/strict.dtd'>
33

44
<html lang="en">
5-
<!-- $Id: about.src,v 2.54 2003-10-17 17:52:46 bbos Exp $ -->
5+
<!-- $Id: about.src,v 2.55 2003-11-06 23:34:42 bbos Exp $ -->
66
<HEAD>
77
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
88
<TITLE>About the CSS&nbsp;2.1 Specification</TITLE>
@@ -34,9 +34,12 @@ widely accepted and implemented.
3434
specification, modifying the specification to be in accordance with
3535
generally accepted practice.
3636

37-
<lI>Removing all CSS2 features which, by virtue of not having been
38-
implemented, have been rejected by the CSS community.
39-
37+
<li>Removing CSS2 features which, by virtue of not having been
38+
implemented, have been rejected by the CSS community. CSS2.1 aims to
39+
reflect what CSS features are reasonably widely implemented for HTML
40+
and XML languages in general (rather than <em>only</em> for a
41+
particular XML language, or <em>only</em> for HTML).
42+
4043
<li>Removing CSS2 features that will be obsoleted by CSS3, thus
4144
encouraging adoption of the proposed CSS3 features in their place.
4245

@@ -249,9 +252,8 @@ initial values.
249252

250253
<p>This part lists the elements to which the property applies. All
251254
elements are considered to have all properties, but some properties
252-
have no rendering effect on some types of elements. For example, <span
253-
class="propinst-border-spacing">'border-spacing'</span> only affects
254-
table elements.
255+
have no rendering effect on some types of elements. For example, the <span
256+
class="propinst-clear">'clear'</span> property only affects block-level elements.
255257

256258
<h4>Inherited</h4>
257259

css2/box.src

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
'http://www.w3.org/TR/html4/strict.dtd'>
33

44
<html lang="en">
5-
<!-- $Id: box.src,v 1.48 2003-11-05 20:03:41 bbos Exp $ -->
5+
<!-- $Id: box.src,v 1.49 2003-11-06 23:34:42 bbos Exp $ -->
66
<HEAD>
77
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
88
<TITLE>Box model</TITLE>
@@ -77,13 +77,15 @@ box is a table, etc. Box widths and heights are discussed
7777
in the chapter on <a href="visudet.html">visual formatting
7878
model details</a>.
7979

80+
<!-- removed at ftf 6 Nov 2003
8081
<P>The <span class="index-def" title="box::width"><a
8182
name="the-box-width"><dfn>box width</dfn></a></span> is given by the
8283
sum of the left and right margins, border, and padding, and the
8384
content width. The <span class="index-def" title="box::height"><a
8485
name="the-box-height"><dfn>box height</dfn></a></span> is given by the sum
8586
of the top and bottom margins, border, and padding, and the content
8687
height.
88+
-->
8789

8890
<P>The background style of the content, padding, and border areas of a
8991
box is specified by the <span

css2/generate.src

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -772,12 +772,16 @@ principal block box. Values have the following meanings:</p>
772772

773773
<dl>
774774
<dt><strong>outside</strong>
775-
<dd>The marker box is outside the principal block box. CSS&nbsp;2.1 does not specify the precise location
776-
of the marker box.
775+
776+
<dd>The marker box is outside the principal block box. CSS&nbsp;2.1
777+
does not specify the precise location of the marker box.
777778

778779
<dt><strong>inside</strong>
779-
<dd>The marker box is the first inline box in the
780-
principal block box, after which the element's content flows.
780+
781+
<dd>The marker box is the first inline box in the principal block box,
782+
after which the element's content flows. CSS&nbsp;2.1 does not specify
783+
the precise location of the marker box.
784+
781785
</dl>
782786

783787
<div class="html-example"><P>

css2/media.src

Lines changed: 12 additions & 14 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: media.src,v 2.30 2002-11-17 19:29:40 bbos Exp $ -->
3+
<!-- $Id: media.src,v 2.31 2003-11-06 23:34:42 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Media types</TITLE>
@@ -112,10 +112,10 @@ properties that apply to that media type.
112112
-->
113113

114114
<P>The names chosen for CSS media types reflect target devices for
115-
which the relevant properties make sense. The names of media types are
116-
normative. In the following list of CSS media types, the parenthetical
117-
descriptions are not normative. Likewise, the "Media" field in the
118-
description of each property is informative.
115+
which the relevant properties make sense. In the following list of CSS
116+
media types the names of media types are normative, but the
117+
parenthetical descriptions are informative. Likewise, the "Media"
118+
field in the description of each property is informative.
119119

120120
<dl>
121121
<dt><strong>all</strong>
@@ -186,7 +186,7 @@ class="index-inst" title="@media">@media</span>.
186186

187187
<div class="note"><P>
188188
<em><strong>Note.</strong>
189-
Future versions of CSS may extend this list. Authors
189+
Future versions of CSS may extend the list of media types. Authors
190190
should not rely on media type names that are not yet defined
191191
by a CSS specification.
192192
</em>
@@ -196,14 +196,12 @@ by a CSS specification.
196196

197197
<P><em>This section is informative, not normative.</em></P>
198198

199-
<P>Each CSS property definition specifies the media types for which
200-
the property must be implemented by a <a
201-
href="conform.html#conformance">conforming user agent</a>. Since
202-
properties generally apply to several media, the "Applies to media"
203-
section of each property definition lists <span class="index-def"
204-
title="media group">media groups</span> rather than individual media
205-
types. Each property applies to all media types in the media groups
206-
listed in its definition.
199+
<P>Each CSS property definition specifies which media types the
200+
property applies to. Since properties generally apply to several media
201+
types, the "Applies to media" section of each property definition
202+
lists <span class="index-def" title="media group">media groups</span>
203+
rather than individual media types. Each property applies to all media
204+
types in the media groups listed in its definition.
207205

208206
<P>CSS&nbsp;2.1 defines the following media groups: </P>
209207
<ul>

css2/page.src

Lines changed: 20 additions & 28 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: page.src,v 2.39 2003-10-08 09:57:01 bbos Exp $ -->
3+
<!-- $Id: page.src,v 2.40 2003-11-06 23:34:42 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Paged media</TITLE>
@@ -15,26 +15,15 @@
1515
on computer screens, etc.) differ from <a
1616
href="./media.html#continuous-media-group">continuous media</a> in
1717
that the content of the document is split into one or more discrete
18-
pages. To handle page breaks, CSS2 extends the <a
19-
href="visuren.html">visual formatting model</a> as follows:</p>
18+
pages. To handle pages, CSS 2.1 describes how page margins are set
19+
on <a href="#page-box">page boxes</a>, and how <a href="#page-breaks">page breaks</a> are declared.
2020

21-
<ol>
22-
<li>The <a href="#page-box">page
23-
box</a> extends the <a href="box.html#box-model">box
24-
model</a> to allow authors to specify page margins.
25-
26-
<li>The <span class="index-def" title="page model"><dfn>page
27-
model</dfn></span> extends the <a href="visuren.html">visual formatting
28-
model</a> to account for <a href="#page-breaks">page breaks.</a>
29-
</ol>
30-
31-
<p>The CSS&nbsp;2.1 <a name="page-model">page model</a> specifies how a
32-
document is formatted within the <a
33-
href="#page-box">page box</a>. The page box does not necessarily correspond to the real <span
34-
class="index-def" title="sheet"><dfn>sheet</dfn></span> where the
35-
document will ultimately be rendered (paper, transparency, screen,
36-
etc.). The user agent is responsible for transferring the page box to the
37-
sheet. Transfer possibilities include:</P>
21+
<p>The user agent is responsible for transferring the page boxes of a
22+
document onto the real <span class="index-def"
23+
title="sheet"><dfn>sheets</dfn></span> where the document will
24+
ultimately be rendered (paper, transparency, screen, etc.). There is
25+
often a 1-to-1 relationship between a page box and a sheet, but this
26+
is not always the case. Transfer possibilities include:</P>
3827

3928
<ul>
4029
<li>Transferring one page box to one sheet (e.g., single-sided printing).
@@ -56,21 +45,24 @@ proper sequence.
5645
box</dfn></span> is a rectangular region that contains two areas:</p>
5746

5847
<ul>
48+
5949
<li>The <span class="index-def" title="page area"><a
6050
name="page-area"><dfn>page area</dfn></a></span>. The page
6151
area includes the boxes laid out on that page.
6252
The edges of the page area act as the initial <a
6353
href="visudet.html#containing-block-details">containing block</a>
64-
for layout that occurs between page breaks.
65-
<li>The margin area, which surrounds the page area.
54+
for layout that occurs between page breaks.
55+
56+
<li>The margin area, which surrounds the page area.
6657
</ul>
6758

6859
<P>Authors can specify the margins of a page box inside an <span
6960
class="index-def" title="@page">@page</span> rule. An @page rule
7061
consists of the keyword "@page", followed by an optional page
71-
selector, followed by a block of declarations. The declarations are
72-
said to be in the <span class="index-def" title="page-context"><a
73-
name="page-context"><dfn>page context</dfn></a></span>.</p>
62+
selector, followed by a block of declarations. The declarations in an
63+
@page rule are said to be in the <span class="index-def"
64+
title="page-context"><a name="page-context"><dfn>page
65+
context</dfn></a></span>.</p>
7466

7567
<P>The <span class="index-def" title="page selector"><dfn>page
7668
selector</dfn></span> specifies for which pages the declarations
@@ -80,9 +72,9 @@ all left pages, or all right pages</p>
8072

8173
<h3><a name="page-margins">Page margins</a></h3>
8274

83-
<P>The <a href="box.html#margin-properties">margin properties</a>
84-
(<span class="propinst-margin-top">'margin-top'</span>, <span
85-
class="propinst-margin-right">'margin-right'</span>, <span
75+
<P>In CSS 2.1, only the <a href="box.html#margin-properties">margin
76+
properties</a> (<span class="propinst-margin-top">'margin-top'</span>,
77+
<span class="propinst-margin-right">'margin-right'</span>, <span
8678
class="propinst-margin-bottom">'margin-bottom'</span>, <span
8779
class="propinst-margin-left">'margin-left'</span>, and <span
8880
class="propinst-margin">'margin'</span>) apply within the <a

css2/selector.src

Lines changed: 21 additions & 9 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: selector.src,v 2.79 2003-11-05 20:03:41 bbos Exp $ -->
3+
<!-- $Id: selector.src,v 2.80 2003-11-06 23:34:42 bbos Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Selectors</title>
@@ -697,7 +697,7 @@ subset of the properties on these pseudo-elements.</P>
697697

698698
<P>The <span class="index-def"
699699
title="first-child|:first-child">:first-child</span> pseudo-class
700-
matches an element that is the first child of some other element.
700+
matches an element that is the first child element of some other element.
701701

702702
<div class="example"><P>
703703
In the following example, the selector matches any P element
@@ -814,10 +814,12 @@ will cause it to be blue.
814814

815815
<p class=note>Note. It is possible for stylesheet authors to abuse the
816816
:link and :visited pseudo-classes to determine which sites a user has
817-
visited without the user's consent. UAs may therefore treat all links
818-
as unvisited links, or implement other measures to preserve the user's
819-
privacy while rendering visited and unvisited links differently. See
820-
[[-P3P]] for more information about handling privacy.
817+
visited without the user's consent.
818+
819+
<p>UAs may therefore treat all links as unvisited links, or implement
820+
other measures to preserve the user's privacy while rendering visited
821+
and unvisited links differently. See [[-P3P]] for more information
822+
about handling privacy.
821823

822824
<h3><a name="dynamic-pseudo-classes">The dynamic pseudo-classes:</a>
823825
<span class="index-def" title="pseudo-classes:::hover|:hover|hover
@@ -857,6 +859,9 @@ how the states are entered and left. Scripting may change whether
857859
elements react to user events or not, and different devices and UAs
858860
may have different ways of pointing to, or activating elements.
859861

862+
<p>CSS&nbsp;2.1 doesn't define if the parent of an element that is
863+
':active' or ':hover is also in that state.
864+
860865
<p>User agents are not required to reflow a currently displayed
861866
document due to pseudo-class transitions. For instance, a style sheet
862867
may specify that the <span
@@ -908,11 +913,18 @@ focus outlines</a>.
908913
In CSS1, the ':active' pseudo-class was mutually
909914
exclusive with ':link' and ':visited'. That is no longer the case. An
910915
element can be both ':visited' and ':active' (or ':link' and
911-
':active') and the normal cascading rules determine which properties
916+
':active') and the normal cascading rules determine which style
917+
declarations
912918
apply.
913919
</em>
914920
</div>
915921

922+
<div class="note"><P>
923+
<em><strong>Note.</strong>
924+
Also note that in CSS1, the ':active' pseudo-class only applied to
925+
links.</em>
926+
</div>
927+
916928
<h3><a name="lang">The language pseudo-class:</a> <span
917929
class="index-def" title="pseudo-classes:::lang|:lang|lang
918930
(pseudo-class)">:lang</span></h3>
@@ -1049,7 +1061,7 @@ will be treated as ordinary lines in the
10491061
paragraph.&lt;/P&gt;
10501062
</pre>
10511063

1052-
<p>the user agent could generate the appropriate start and end tags for
1064+
<p>the user agent could simulate start and end tags for
10531065
SPAN when inserting the fictional tag sequence for :first-line.
10541066

10551067
<pre>
@@ -1075,7 +1087,7 @@ line...&lt;/P>&lt/DIV></code> is the first line of the P (assuming
10751087
that both P and DIV are block-level).
10761088

10771089
<p>A UA should act as if the fictional start tag of the first-line
1078-
pseudo-element is just inside the smallest enclosing block-level
1090+
pseudo-element is just inside the innermost enclosing block-level
10791091
element. (Since CSS1 and CSS2 were silent on this case, authors
10801092
should not rely on this behavior.) Here is an example. The fictional
10811093
tag sequence for

css2/syndata.src

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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: syndata.src,v 2.88 2003-10-17 17:52:47 bbos Exp $ -->
4+
<!-- $Id: syndata.src,v 2.89 2003-11-06 23:34:42 bbos Exp $ -->
55
<head>
66
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
77
<title>Syntax and basic data types</title>
@@ -136,6 +136,9 @@ code 32), "tab" (9), "line feed" (10), "carriage return" (13), and
136136
such as "em-space" (8195) and "ideographic space" (12288), are never
137137
part of whitespace.
138138
</p>
139+
<p>The meaning of input that cannot be tokenized or parsed is
140+
undefined in CSS&nbsp;2.1.
141+
139142
<h3><a name="keywords">Keywords</a></h3>
140143

141144
<!-- provide better explanation of where keywords appear:
@@ -228,7 +231,7 @@ href="#parsing-errors">rules for handling parsing errors</a>. However, because t
228231
(including element names, classes, and IDs in <a
229232
href="selector.html">selectors</a>) can contain only the
230233
characters [A-Za-z0-9] and ISO 10646 characters 161 and higher,
231-
plus the hyphen (-) and the underscore (_); they cannot start with a hyphen or a
234+
plus the hyphen (-) and the underscore (_); they cannot start with a
232235
digit. They can also contain escaped characters and any ISO 10646
233236
character as a numeric code (see next item).
234237
<span class="example">For instance, the identifier "B&amp;W?" may
@@ -903,7 +906,7 @@ li { list-style: url(http://www.example.com/redball.png) disc }
903906
</div>
904907

905908
<p> Parentheses, commas, whitespace characters, single quotes (') and
906-
double quotes (") appearing in a URI must be escaped with a
909+
double quotes (") appearing in an unquoted URI must be escaped with a
907910
backslash: '\(', '\)', '\,'.
908911
</p>
909912
<p>Depending on the type of URI, it might also be possible to write
@@ -935,7 +938,8 @@ by the URI
935938
<pre>http://www.example.org/style/yellow</pre>
936939
</div>
937940

938-
<p>User agents may vary in how they handle URIs that designate
941+
<p>User agents may vary in how they handle invalid URIs or URIs that
942+
designate
939943
unavailable or inapplicable resources.
940944
</p>
941945
<h3><a name="counter">Counters</a></h3>
@@ -1187,8 +1191,13 @@ at-rule.</li>
11871191
<li>Mechanisms of the language of the
11881192
referencing document (e.g., in HTML, the "charset"
11891193
attribute of the LINK element).</li>
1194+
<li><ins cite="http://www.damowmow.com/temp/csswg/css21/issues"
1195+
title="issue 44">UA-dependent mechanisms</ins></li>
11901196
</ol>
11911197

1198+
<p><ins cite="http://www.damowmow.com/temp/csswg/css21/issues"
1199+
title="issue 44">[A BOM character is ignored if it conflicts, otherwise used]</ins>
1200+
11921201
<p>At most one @charset rule may appear in an external
11931202
style sheet &mdash; it must <em>not</em> appear in an embedded style sheet
11941203
&mdash; and it must appear at the very start of the document, not preceded

0 commit comments

Comments
 (0)