Skip to content

Commit 02c3fd3

Browse files
committed
[css2] Minor edits
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%40330
1 parent 3020825 commit 02c3fd3

2 files changed

Lines changed: 102 additions & 88 deletions

File tree

css2/page.src

Lines changed: 35 additions & 37 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 1.9 1997-10-29 20:24:30 bbos Exp $ -->
3+
<!-- $Id: page.src,v 1.10 1997-10-30 08:37:26 ian Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Paged media</TITLE>
@@ -29,7 +29,7 @@ to allow authors to specify the size of a page, its margins, etc.
2929
model</dfn></span> extends the <a
3030
href="flowobj.html#flow-model">visual flow model</a> to
3131
account for <a href="#page-breaks">page breaks.</a>
32-
In the page model, the <a href="convent.html#canvas">canvas</a>
32+
In the page model, the <a href="media.html#canvas">canvas</a>
3333
is the page box.
3434
</ol>
3535

@@ -56,7 +56,7 @@ double-sided printing).
5656
<li>Printing signatures (a group of pages
5757
printed on a sheet, which, when folded and trimmed like a book, appear in their
5858
proper sequence).
59-
<li>Printing to alternate paper trays.
59+
<li>Printing one document to several output trays.
6060
<li>Transferring to a file.
6161
</ul>
6262

@@ -481,14 +481,15 @@ Future versions of CSS may include other page pseudo-classes (e.g.,
481481
<h3>Running headers and footers</h3>
482482

483483
<p>It is customary in printed documents to put navigation aids at the
484-
top and/or botom of the page. Often you'll find a page number, the
484+
top and/or bottom of the page. Often you'll find a page number, the
485485
name of the book, and the title of the current chapter there.
486486

487487
<p>CSS defines two areas of the page for holding this kind of
488-
information. They are referred to as the ":header" and ":footer"
489-
pseudo-elements, since their default position is above, resp. below
490-
the content of the page. Their content and other properties are
491-
defined inside an @-rule:
488+
information. They are referred to as the <span class="index-def"
489+
title=":header">:header</span> and <span class="index-def"
490+
title=":footer">:footer</span> pseudo-elements, since their default
491+
position is above (resp., below) the content of the page. Their content
492+
and other properties are defined inside an @page rule:
492493

493494
<pre>
494495
@page :footer {... footer properties... }
@@ -499,52 +500,52 @@ defined inside an @-rule:
499500
footers, the following defines them individually:
500501

501502
<pre>
502-
@page :left :footer {...} /* footer of the left page */
503+
@page :left :footer {...} /* footer of the left page */
503504
@page :right :footer {...} /* footer of the right page */
504-
@page :left :header {...} /* header of the left page */
505+
@page :left :header {...} /* header of the left page */
505506
@page :right :header {...} /* header of the right page */
506507
</pre>
507508

508-
<p>The cascading rules determine what the values for properties are in
509-
case the same property is set on various @page rules. The specificity
510-
of @page is 0, every :left, :right, :footer, and :header adds 1 to the
511-
specificity.
509+
<p>The <a href="cascade.html">cascading rules</a> determine what the
510+
values for properties are in case the same property is set on various
511+
@page rules. The specificity of @page is 0, every :left, :right,
512+
:footer, and :header adds 1 to the specificity.
512513

513514
<p>The :footer and :header areas behave very similar to <span
514515
class="index-inst" title="fixed"> <span
515516
class="value-inst-fixed">'fixed'</span></span> elements. The only
516517
difference is in their content: in headers and footers the content is
517518
limited to one line, and it may vary from page to page, since it can
518-
include variables. The page content is the reference box[ref] for the
519-
header and footer. See section <a
520-
href="flowobj.html#fixed-positioning">"fixed positioning"</a> for a
521-
description of fixed elements.
519+
include variables. The page content is the <a
520+
href="flowobj.html#reference-box">reference box</a> for the header and
521+
footer. See section <a href="flowobj.html#fixed-positioning">"fixed
522+
positioning"</a> for a description of fixed elements.
522523

523524
<p>The initial values for <span class="propinst-top">'top'</span>,
524525
<span class="propinst-bottom">'bottom'</span> and <span
525526
class="propinst-height">'height'</span> are different for :footer and
526527
:header than for normal fixed elements:
527528

528529
<ul>
529-
<li><p>'top' in :header has a UA-dependent initial value. A suggested
530+
<li><p><span class="propinst-top">'top'</span> in :header has a UA-dependent initial value. A suggested
530531
value is -3em.
531-
<li><p>'bottom' in :footer has a UA-dependent initial value. A
532+
<li><p><span class="propinst-bottom">'bottom'</span> in :footer has a UA-dependent initial value. A
532533
suggested value is -3em.
533-
<li><p>'height' in both :header and :footer has a UA-dependent initial
534+
<li><p><span class="propinst-height">'height'</span> in both :header and :footer has a UA-dependent initial
534535
value. A suggested value is 1em.
535536
</ul>
536537

537538
<p>The suggested values make the header and footer as wide as the page
538-
content, and about two lines above, resp. below it.
539+
content, and about two lines above (resp., below) it.
539540

540541
<p>The content of the header and footer is specified with the <span
541542
class="propinst-content">'content'</span> property. The content is
542543
always rendered as a single line. (If the content is too long, the UA
543544
should cut it off in some way.) The value is a comma-separated list of
544-
1, 2 or 3 values. Depending on the <span
545+
1, 2, or 3 values. Depending on the <span
545546
class="propinst-direction">'direction'</span> property, the first of
546-
these is left or right aligned, the second is centered, and the third
547-
is right or left aligned.
547+
these is left- or right-aligned, the second is centered, and the third
548+
is right- or left-aligned.
548549

549550
<p>The content is a concatenation of fixed strings and variable
550551
parts. The following variable parts are allowed:
@@ -554,18 +555,15 @@ parts. The following variable parts are allowed:
554555
<dl>
555556
<dt>lower-roman(pageno), upper-roman(pageno), decimal(pageno),
556557
lower-alpha(pageno), upper-alpha(pageno)
557-
<dd>
558-
<p>This expands to the page number, in the specified notation.
558+
<dd>This expands to the page number, in the specified notation.</dd>
559559

560560
<dt>lower-roman(pages), upper-roman(pages), decimal(pages),
561561
lower-alpha(pages), upper-alpha(pages)
562-
<dd>
563-
<p>This expands to the total number of pages, in the specified
564-
notation.
562+
<dd>This expands to the total number of pages, in the specified
563+
notation.</dd>
565564

566565
<dt>first(<var>X</var>), last(<var>X</var>), previous(<var>X</var>)
567-
<dd>
568-
<p><var>X</var> can be one of 'title', 'chapter', or
566+
<dd><var>X</var> can be one of 'title', 'chapter', or
569567
'section'. First(<var>X</var>) expands to the content of the first
570568
element on the page that has a <span
571569
class="propinst-running-head">'running-head:<var>X</var>'</span>
@@ -575,15 +573,13 @@ element on the page with a 'running-head:<var>X</var> property. If
575573
there is none, 'last' is the same as
576574
'previous'. 'Previous(<var>X</var>)' expands to the contents of the
577575
last element with 'running-head:<var>X</var>' on all pages before this
578-
one. If there is none, the result is the empty string.
576+
one. If there is none, the result is the empty string.</dd>
579577

580578
<dt>url
581-
<dd>
582-
<p>This expands to the URL of the document (not of the style sheet).
579+
<dd>This expands to the URL of the document (not of the style sheet).</dd>
583580

584581
<dt>date
585-
<dd>
586-
<p>This expands to the current date, in the user's locale and format.
582+
<dd>This expands to the current date, in the user's locale and format.</dd>
587583
</dl>
588584

589585
<p>The "contents" is the text content of the element and all its
@@ -693,6 +689,8 @@ section on <a href="cascade.html#cascading-order">cascading order</a>
693689
for details), the left margin on left pages will be '4cm' and all
694690
other pages (i.e., the right pages) will have a left margin of '3cm'.
695691
</div>
692+
</body>
693+
</html>
696694
<!-- Keep this comment at the end of the file
697695
Local variables:
698696
mode: sgml

0 commit comments

Comments
 (0)