Skip to content

Commit 6667ad4

Browse files
committed
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402263
1 parent 47bfa4c commit 6667ad4

File tree

5 files changed

+36
-39
lines changed

5 files changed

+36
-39
lines changed

css2/cascade.src

Lines changed: 8 additions & 6 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: cascade.src,v 2.49 2004-02-18 00:19:03 bbos Exp $ -->
3+
<!-- $Id: cascade.src,v 2.50 2004-12-07 10:10:25 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Assigning property values, Cascading, and Inheritance</TITLE>
7-
<!-- Changed by Kimberly Blessing, 2004-02-13 -->
87
</HEAD>
98
<BODY>
109

@@ -146,6 +145,9 @@ value as the property for the element's parent. The 'inherit' value
146145
can be used to strengthen inherited values, and it can also be used on
147146
properties that are not normally inherited.
148147

148+
<p>If the 'inherit' value is set on the root element, the property is
149+
assigned its initial value.
150+
149151
<div class="example"><P>In the example below, the <span
150152
class="propinst-color">'color'</span> and <span
151153
class="propinst-background">'background'</span> properties are set on
@@ -295,11 +297,11 @@ must apply the following sorting order:</p>
295297

296298
</OL>
297299

298-
<P> Apart from the "!important" setting on individual declarations,
300+
<P>Apart from the "!important" setting on individual declarations,
299301
this strategy gives author's style sheets higher weight than those of
300-
the reader. It is therefore important that the user agent give the
301-
user the ability to turn off the influence of a certain style sheet,
302-
e.g., through a pull-down menu.
302+
the reader. User agents must give the user the ability to turn off the
303+
influence of specific author style sheets, e.g., through a pull-down
304+
menu.
303305

304306
<H3><a name="important-rules">!important rules</a></H3>
305307

css2/conform.src

Lines changed: 5 additions & 4 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: conform.src,v 2.58 2004-02-17 21:40:55 bbos Exp $ -->
3+
<!-- $Id: conform.src,v 2.59 2004-12-07 10:10:25 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Conformance: requirements and recommendations</TITLE>
@@ -11,9 +11,6 @@
1111

1212
<H2>Definitions</H2>
1313

14-
<p>In this section, we begin the formal specification of CSS&nbsp;2.1,
15-
starting with the contract between authors, users, and implementors.
16-
1714
<P>The key words <span class="index-def" title="MUST">"MUST"</span>,
1815
<span class="index-def" title="MUST NOT">"MUST NOT"</span>, <span
1916
class="index-def" title="REQUIRED">"REQUIRED"</span>, <span
@@ -313,6 +310,10 @@ href="cascade.html">cascading and inheritance</a>.
313310
with the "alternate" keyword in HTML 4.0 [[-HTML40]]), the UA must
314311
allow the user to select which style sheet set the UA should apply.
315312

313+
<li>User agents must give the user the ability to turn off the
314+
influence of specific author style sheets. Conformance to UAAG 1.0
315+
checkpoint 4.14 satisfies this condition [[-UUAG]].
316+
316317
</ol>
317318

318319
<P>Not every user agent must observe every point, however:</p>

css2/generate.src

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ class="value-inst-string"><strong>&lt;string&gt;</strong></span></span>
163163
<dt><span class="index-inst" title="&lt;uri&gt;"><span
164164
class="value-inst-uri"><strong>&lt;uri&gt;</strong></span></span>
165165
<dd>The value is a URI that designates an external resource.
166-
If a user agent cannot support the resource because of the
167-
<a href="media.html">media types</a> it supports, it must ignore the resource.
166+
If a user agent cannot display the resource it must ignore it.
168167

169168
<dt><span class="index-inst" title="&lt;counter&gt;"><span
170169
class="value-inst-counter"><strong>&lt;counter&gt;</strong></span></span>
@@ -431,7 +430,7 @@ which inserts nothing, but increments the quotation depth by one.
431430
<h2>Automatic <span class="index-def" title="counters"><a
432431
name="counters">counters</a></span> and numbering</h2>
433432

434-
<p>Automatic numbering in CSS2 is controlled with two properties,
433+
<p>Automatic numbering in CSS2.1 is controlled with two properties,
435434
<span class="propinst-counter-increment">'counter-increment'</span>
436435
and <span class="propinst-counter-reset">'counter-reset'</span>. The
437436
counters defined by these properties are used with the counter() and
@@ -482,12 +481,8 @@ reset first and then incremented.
482481
<p>If the same counter is specified more than once in the value of the
483482
<span class="propinst-counter-reset">'counter-reset'</span> and <span
484483
class="propinst-counter-increment">'counter-increment'</span>
485-
properties, all counters are processed in the order specified.
486-
487-
<p>If the same counter is specified more than once in the value of the
488-
<span class="propinst-counter-reset">'counter-reset'</span> and <span
489-
class="propinst-counter-increment">'counter-increment'</span>
490-
properties, the counter will be processed accordingly.
484+
properties, each reset/increment of the counter is processed in the order
485+
specified.
491486

492487
<div class="example">
493488
<p>The following example will reset the 'section' counter to 0:
@@ -728,9 +723,6 @@ rendering depends on the user agent.
728723
<dd>Traditional Armenian numbering.
729724
</dl>
730725

731-
<P>A user agent that does not recognize a numbering system should use
732-
'decimal'.
733-
734726

735727
<P>Alphabetic systems are specified with:</P>
736728

css2/page.src

Lines changed: 15 additions & 13 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.41 2004-02-14 00:59:12 bbos Exp $ -->
3+
<!-- $Id: page.src,v 2.42 2004-12-07 10:10:25 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Paged media</TITLE>
@@ -16,7 +16,7 @@
1616
on computer screens, etc.) differ from <a
1717
href="./media.html#continuous-media-group">continuous media</a> in
1818
that the content of the document is split into one or more discrete
19-
pages. To handle pages, CSS 2.1 describes how page margins are set
19+
pages. To handle pages, CSS&nbsp;2.1 describes how page margins are set
2020
on <a href="#page-box">page boxes</a>, and how <a href="#page-breaks">page breaks</a> are declared.
2121

2222
<p>The user agent is responsible for transferring the page boxes of a
@@ -50,7 +50,7 @@ box</dfn></span> is a rectangular region that contains two areas:</p>
5050
<li>The <span class="index-def" title="page area"><a
5151
name="page-area"><dfn>page area</dfn></a></span>. The page
5252
area includes the boxes laid out on that page.
53-
The edges of the page area act as the initial <a
53+
The edges of the first page area act as the initial <a
5454
href="visudet.html#containing-block-details">containing block</a>
5555
for layout that occurs between page breaks.
5656

@@ -73,7 +73,7 @@ all left pages, or all right pages</p>
7373

7474
<h3><a name="page-margins">Page margins</a></h3>
7575

76-
<P>In CSS 2.1, only the <a href="box.html#margin-properties">margin
76+
<P>In CSS&nbsp;2.1, only the <a href="box.html#margin-properties">margin
7777
properties</a> (<span class="propinst-margin-top">'margin-top'</span>,
7878
<span class="propinst-margin-right">'margin-right'</span>, <span
7979
class="propinst-margin-bottom">'margin-bottom'</span>, <span
@@ -101,9 +101,9 @@ Here is a simple example which sets all page margins on all pages:
101101
fonts, so 'em' and 'ex' units are not allowed. Percentage values on
102102
the margin properties are relative to the dimensions of the <a
103103
href="#page-box">page box</a>; for left and right margins, they refer
104-
to page box width while for top and bottom margins, they refer to page
105-
box height. All other units associated with the respective CSS&nbsp;2.1
106-
properties are allowed.
104+
to the width of the page box while for top and bottom margins, they
105+
refer to the height of the page box. All other units associated with
106+
the respective CSS&nbsp;2.1 properties are allowed.
107107

108108
<P>Due to negative margin values (either on the page box or on
109109
elements) or <a href="visuren.html#absolute-positioning">absolute
@@ -282,8 +282,10 @@ of the following element. When these properties have values other
282282
than 'auto', the values 'always', 'left', and 'right' take precedence
283283
over 'avoid'.
284284

285-
<P>These properties only apply to block level elements that
286-
are in the normal flow of the root element.
285+
<P>User Agents must apply these properties to block-level elements
286+
in the normal flow of the root element. User agents may also apply
287+
these properties to other elements, e.g., 'table-row' elements.
288+
287289

288290
<h3><a name="break-inside">Breaks inside elements</a>: <span
289291
class="propinst-orphans">'orphans'</span>, <span
@@ -369,9 +371,9 @@ margin, there is at least one with the value 'always', 'left', or
369371

370372
<h3>"Best" page breaks</h3>
371373

372-
<p>CSS2 does <em>not</em> define which of a set of allowed page breaks
373-
must be used; CSS2 does not forbid a user agent from breaking at every
374-
possible break point, or not to break at all. But CSS2 does recommend
374+
<p>CSS&nbsp;2.1 does <em>not</em> define which of a set of allowed page breaks
375+
must be used; CSS&nbsp;2.1 does not forbid a user agent from breaking at every
376+
possible break point, or not to break at all. But CSS&nbsp;2.1 does recommend
375377
that user agents observe the following heuristics (while recognizing
376378
that they are sometimes contradictory):</p>
377379

@@ -424,7 +426,7 @@ as a block to the next page.
424426
<h2>Cascading in the page context</H2>
425427

426428
<P>Declarations in the <a href="#page-context">page context</a> obey
427-
the <a href="cascade.html">cascade</a> just like normal CSS2
429+
the <a href="cascade.html">cascade</a> just like normal CSS
428430
declarations.
429431

430432
<div class="example"><P>

css2/sample.src

Lines changed: 4 additions & 4 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: sample.src,v 2.38 2004-02-17 19:42:43 bbos Exp $ -->
3+
<!-- $Id: sample.src,v 2.39 2004-12-07 10:10:25 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Default style sheet for HTML 4.0</TITLE>
@@ -46,11 +46,11 @@ tbody { display: table-row-group }
4646
tfoot { display: table-footer-group }
4747
col { display: table-column }
4848
colgroup { display: table-column-group }
49-
td, th { display: table-cell; }
49+
td, th { display: table-cell }
5050
caption { display: table-caption }
5151
th { font-weight: bolder; text-align: center }
5252
caption { text-align: center }
53-
body { margin: 8px; line-height: 1.12 }
53+
body { margin: 8px }
5454
h1 { font-size: 2em; margin: .67em 0 }
5555
h2 { font-size: 1.5em; margin: .75em 0 }
5656
h3 { font-size: 1.17em; margin: .83em 0 }
@@ -71,7 +71,7 @@ pre, tt, code,
7171
kbd, samp { font-family: monospace }
7272
pre { white-space: pre }
7373
button, textarea,
74-
input, object,
74+
input, img,
7575
select { display:inline-block; }
7676
big { font-size: 1.17em }
7777
small, sub, sup { font-size: .83em }

0 commit comments

Comments
 (0)