Skip to content

Commit 2ecbd9b

Browse files
committed
[css2] Generated. Do not edit!
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402994
1 parent e61763b commit 2ecbd9b

File tree

14 files changed

+627
-539
lines changed

14 files changed

+627
-539
lines changed

css2/css2.html

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3314,7 +3314,7 @@ <h2>4.2 <a name="parsing-errors">Rules for handling parsing
33143314

33153315

33163316

3317-
<li><strong>Invalid at-keywords.</strong> User agents must <span
3317+
<li><strong>At-rules with unknown at-keywords.</strong> User agents must <span
33183318
class="index-inst" title="ignore"><a name="x28" href="#ignore">ignore</a></span>
33193319
an invalid at-keyword together with everything following it, up to the
33203320
end of the block that contains the invalid at-keyword, or up to and
@@ -3689,7 +3689,7 @@ <h3>4.3.4 <a name="uri">URLs and URIs</a></h3>
36893689
delimiters in CSS, the entire URI value must be treated as a single
36903690
unit by the tokenizer and normal tokenization behavior does not apply
36913691
within a URI value. Therefore comments are not allowed within a URI
3692-
value.
3692+
value.</em>
36933693
</div>
36943694

36953695
<p> In order to create modular style sheets that are not dependent on
@@ -10999,8 +10999,8 @@ <h3>10.6.4 <a name="abs-non-replaced-height">Absolutely positioned, non-replaced
1099910999
first box of the element if its specified <a href="visuren.html#propdef-position" class="noxref"><span
1100011000
class="propinst-position">'position'</span></a> value had been 'static'
1100111001
and its specified <a href="visuren.html#propdef-float" class="noxref"><span class="propinst-float">'float'</span></a> had been
11002-
'none' and <a href="visuren.html#propdef-clear" class="noxref"><span class="propinst-clear">'clear'</span></a> had been
11003-
'none'. (Note that due to the rules
11002+
'none' and its specified <a href="visuren.html#propdef-clear" class="noxref"><span class="propinst-clear">'clear'</span></a>
11003+
had been 'none'. (Note that due to the rules
1100411004
in <a href="visuren.html#dis-pos-flo">section&nbsp;9.7</a> this might
1100511005
require also assuming a different computed value for 'display'.)
1100611006
The value is negative if the hypothetical box is above the containing
@@ -13040,7 +13040,8 @@ <h3>12.5.1 <a name="list-style">Lists:</a> the <a href="generate.html#propdef-li
1304013040
</div>
1304113041

1304213042

13043-
<P> This property specifies the position of the marker box in the
13043+
<P> This property specifies the position of the marker box with
13044+
respect to the
1304413045
principal block box. Values have the following meanings:</p>
1304513046

1304613047
<dl>
@@ -13323,16 +13324,30 @@ <h2>13.2 <a name="page-box">Page boxes</a>: the @page rule</h2>
1332313324
<P>Authors can specify the margins of a page box inside an <a name="x3"><span
1332413325
class="index-def" title="@page">@page</span></a> rule. An @page rule
1332513326
consists of the keyword "@page", followed by an optional page
13326-
selector, followed by a block of declarations. The declarations in an
13327+
selector, followed by a block containing declarations and
13328+
at-rules. The declarations in an
1332713329
@page rule are said to be in the <span class="index-def"
1332813330
title="page-context"><a name="page-context"><dfn>page
1332913331
context</dfn></a></span>.</p>
1333013332

13333+
<p class=note>Note: CSS level&nbsp;2 has no at-rules that may appear
13334+
inside @page, but such at-rules are expected to be defined in
13335+
level&nbsp;3.
13336+
1333113337
<P>The <a name="x5"><span class="index-def" title="page selector"><dfn>page
1333213338
selector</dfn></span></a> specifies for which pages the declarations
1333313339
apply. In CSS&nbsp;2.1, page selectors may designate the first page,
1333413340
all left pages, or all right pages</p>
1333513341

13342+
<P>The rules for handling malformed declarations, malformed
13343+
statements, and invalid at-rules inside @page are as defined in <a
13344+
href="syndata.html#parsing-errors">section&nbsp;4.2,</a> with the
13345+
following addition: when the UA expects the start of a declaration or
13346+
at-rule (i.e., an IDENT token or an ATKEYWORD token) but finds an
13347+
unexpected token instead, that token is considered to be the first
13348+
token of a malformed declaration. I.e., the rule for malformed
13349+
declarations, rather than malformed statements is used to determine
13350+
which tokens to ignore in that case.
1333613351

1333713352
<h3>13.2.1 <a name="page-margins">Page margins</a></h3>
1333813353

css2/diffs-rec/generate.html

Lines changed: 53 additions & 52 deletions
Large diffs are not rendered by default.

css2/diffs-rec/page.html

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -101,26 +101,40 @@ <h2> <del>Although CSS2 does not specify how user agents transfer page boxes to
101101
<P>Authors <ins>can</ins> specify the <del>dimensions, orientation, margins, etc.</del><ins>margins</ins> of a page box <del>within</del><ins>inside</ins> an <a name="x3"><span
102102
class="index-def" title="@page">@page</span></a> rule. An @page rule
103103
consists of the keyword "@page", <del>a page selector (followed with no intervening space</del><ins>followed</ins> by an optional page
104-
<del>pseudo-class), and</del><ins>selector, followed by</ins> a block of <ins>declarations. The</ins> declarations <del>(said</del><ins>in an
104+
<del>pseudo-class), and</del><ins>selector, followed by</ins> a block <del>of</del><ins>containing declarations and
105+
at-rules. The</ins> declarations <del>(said</del><ins>in an
105106
@page rule are said</ins> to be in the <span class="index-def"
106107
title="page-context"><a name="page-context"><dfn>page
107108
context</dfn></a></span> <del>).</del><ins>.</ins></p>
108109

110+
<p class=note><ins>Note: CSS level&nbsp;2 has no at-rules that may appear
111+
inside @page, but such at-rules are expected to be defined in
112+
level&nbsp;3.</ins>
113+
109114
<P>The <a name="x5"><span class="index-def" title="page selector"><dfn>page
110115
selector</dfn></span></a> specifies for which pages the declarations
111116
apply. In <del>CSS2,</del><ins>CSS&nbsp;2.1,</ins> page selectors may designate the first page,
112-
all left pages, <ins>or</ins> all right <del>pages, or a</del><ins>pages</ins></p>
113-
114-
115-
<h3><ins>13.2.1</ins> <a name="page-margins">Page <del>with a specific name.</del><ins>margins</ins></a></h3>
116-
117-
<P><ins>In CSS&nbsp;2.1, only</ins> the <a href="box.html#margin-properties"> <del>dimensions of</del><ins>margin
118-
properties</ins></a> <ins>(</ins><a href="box.html#propdef-margin-top" class="noxref"><span class="propinst-margin-top"><ins>'margin-top'</ins></span></a><ins>,</ins>
119-
<a href="box.html#propdef-margin-right" class="noxref"><span class="propinst-margin-right"><ins>'margin-right'</ins></span></a><ins>,</ins> <a href="box.html#propdef-margin-bottom" class="noxref"><span
120-
class="propinst-margin-bottom"><ins>'margin-bottom'</ins></span></a><ins>,</ins> <a href="box.html#propdef-margin-left" class="noxref"><span
121-
class="propinst-margin-left"><ins>'margin-left'</ins></span></a><ins>, and</ins> <a href="box.html#propdef-margin" class="noxref"><span
122-
class="propinst-margin"><ins>'margin'</ins></span></a><ins>) apply within</ins> the <a
123-
href="#page-context">page <del>box are set with</del><ins>context</ins></a><ins>.</ins> The <del>'size' property. The dimensions of the page area are the dimensions of the page box minus the margin area. Example(s): For example, the following @page rule sets the page box size to 8.5 x 11 inches and creates '2cm' margin on all sides between the page box edge and the page area: @page { size 8.5in 11in; margin: 2cm } The 'marks' property in an @page rule specifies crop and cross marks for the page box. 13.2.1 Page margins The margin properties ( 'margin-top' , 'margin-right' , 'margin-bottom' , 'margin-left' , and 'margin' ) apply within the page context . The following diagram shows</del><ins>following diagram shows</ins> the
117+
all left pages, <ins>or</ins> all right <del>pages, or a page with a specific name. The dimensions of</del><ins>pages</ins></p>
118+
119+
<P>The <del>page box</del><ins>rules for handling malformed declarations, malformed
120+
statements, and invalid at-rules inside @page</ins> are <del>set</del><ins>as defined in</ins> <a
121+
href="syndata.html#parsing-errors"><ins>section&nbsp;4.2,</ins></a> with the
122+
<del>'size' property. The dimensions of</del><ins>following addition: when</ins> the <del>page area are</del><ins>UA expects</ins> the <del>dimensions</del><ins>start</ins> of <del>the page box minus the margin area. Example(s): For example, the following @page rule sets the page box size</del><ins>a declaration or
123+
at-rule (i.e., an IDENT token or an ATKEYWORD token) but finds an
124+
unexpected token instead, that token is considered</ins> to <del>8.5 x 11 inches and creates '2cm' margin on all sides between the page box edge and</del><ins>be</ins> the <del>page area: @page { size 8.5in 11in; margin: 2cm }</del><ins>first
125+
token of a malformed declaration. I.e.,</ins> the <del>'marks' property in an @page</del>rule <del>specifies crop and cross marks</del>for <del>the page box.</del><ins>malformed
126+
declarations, rather than malformed statements is used to determine
127+
which tokens to ignore in that case.</ins>
128+
129+
<h3>13.2.1 <a name="page-margins">Page margins</a></h3>
130+
131+
<P><ins>In CSS&nbsp;2.1, only</ins> the <a href="box.html#margin-properties">margin
132+
properties</a> (<a href="box.html#propdef-margin-top" class="noxref"><span class="propinst-margin-top">'margin-top'</span></a>,
133+
<a href="box.html#propdef-margin-right" class="noxref"><span class="propinst-margin-right">'margin-right'</span></a>, <a href="box.html#propdef-margin-bottom" class="noxref"><span
134+
class="propinst-margin-bottom">'margin-bottom'</span></a>, <a href="box.html#propdef-margin-left" class="noxref"><span
135+
class="propinst-margin-left">'margin-left'</span></a>, and <a href="box.html#propdef-margin" class="noxref"><span
136+
class="propinst-margin">'margin'</span></a>) apply within the <a
137+
href="#page-context">page context</a>. The following diagram shows the
124138
relationships between the sheet, page box, and page margins:</P>
125139

126140
<div class="figure">
@@ -141,7 +155,7 @@ <h3><ins>13.2.1</ins> <a name="page-margins">Page <del>with a specific name.</d
141155

142156
<p>The <a href="#page-context">page context</a> has no notion of
143157
fonts, so 'em' and 'ex' units are not allowed. Percentage values on
144-
the margin <del>properties are relative to the dimensions of the page box ; for left and right margins, they refer to page box width while for top and bottom margins, they refer to page box height. All other units associated with the respective CSS2 properties are allowed. Due to negative margin values (either on the page box or on elements) or absolute positioning content may end up outside the page box, but this content may be "cut" -- by the user agent, the printer, or ultimately, the paper cutter. 13.2.2 Page size : the 'size' property 'size' Value: &nbsp;&nbsp; &lt;length&gt; {1,2} | auto | portrait | landscape | inherit Initial: &nbsp;&nbsp; auto Applies to: &nbsp;&nbsp; the page context Inherited: &nbsp;&nbsp; N/A Percentages: &nbsp;&nbsp; N/A Media: &nbsp;&nbsp; visual , paged This property specifies the size and orientation of a page box. The size of a page box may either be "absolute" (fixed size) or "relative" (scalable, i.e., fitting available sheet sizes). Relative page boxes allow user agents to scale a document and make optimal use of the target size. Three values for the 'size' property create a relative page box: auto The page box will be set to the size and orientation of the target sheet. landscape Overrides the target's orientation. The page box is the same size as the target, and the longer sides are horizontal. portrait Overrides the target's orientation. The page box is the same size as the target, and the shorter sides are horizontal. Example(s): In the following example, the outer edges of the page box will align with the target. The percentage value on the 'margin' property is relative to the target size so if the target sheet dimensions are 21.0cm x 29.7cm (i.e., A4), the margins are 2.10cm and 2.97cm. @page { size: auto; /* auto is the initial value */ margin: 10%; } Length values for the 'size' property create an absolute page box. If only one length value is specified, it sets both the width and height of the page box (i.e., the box is a square). Since the page box is the initial containing block , percentage values are not allowed for the 'size' property. Example(s): For example: @page { size: 8.5in 11in; /* width height */ } The above example set the width of the page box to be 8.5in and the height to be 11in. The page box in this example requires a target sheet size of 8.5&quot;x11&quot; or larger. User agents may allow users to control the transfer of the page box to the sheet (e.g., rotating an absolute page box that's being printed). Rendering page boxes that do not fit a target sheet If a page box does not fit the target sheet dimensions, the user agent may choose to: Rotate the page box 90° if this will make the page box fit. Scale the page to fit the target. The user agent should consult the user before performing these operations. Positioning the page box on the sheet When the page box is smaller than the target size, the user agent is free</del><ins>properties are relative</ins> to <del>place</del><ins>the dimensions of</ins> the <a
158+
the margin properties <del>are relative to the dimensions of the page box ; for left and right margins, they refer to page box width while for top and bottom margins, they refer to page box height. All other units associated with the respective CSS2 properties are allowed. Due to negative margin values (either on the page box or on elements) or absolute positioning content may end up outside the page box, but this content may be "cut" -- by the user agent, the printer, or ultimately, the paper cutter. 13.2.2 Page size : the 'size' property 'size' Value: &nbsp;&nbsp; &lt;length&gt; {1,2} | auto | portrait | landscape | inherit Initial: &nbsp;&nbsp; auto Applies to: &nbsp;&nbsp; the page context Inherited: &nbsp;&nbsp; N/A Percentages: &nbsp;&nbsp; N/A Media: &nbsp;&nbsp; visual , paged This property specifies the size and orientation of a page box. The size of a page box may either be "absolute" (fixed size) or "relative" (scalable, i.e., fitting available sheet sizes). Relative page boxes allow user agents to scale a document and make optimal use of the target size. Three values for the 'size' property create a relative page box: auto The page box will be set to the size and orientation of the target sheet. landscape Overrides the target's orientation. The page box is the same size as the target, and the longer sides are horizontal. portrait Overrides the target's orientation. The page box is the same size as the target, and the shorter sides are horizontal. Example(s): In the following example, the outer edges of the page box will align with the target. The percentage value on the 'margin' property is relative to the target size so if the target sheet dimensions are 21.0cm x 29.7cm (i.e., A4), the margins are 2.10cm and 2.97cm. @page { size: auto; /* auto is the initial value */ margin: 10%; } Length values for the 'size' property create an absolute page box. If only one length value is specified, it sets both the width and height of the page box (i.e., the box is a square). Since the page box is the initial containing block , percentage values are not allowed for the 'size' property. Example(s): For example: @page { size: 8.5in 11in; /* width height */ } The above example set the width of the page box to be 8.5in and the height to be 11in. The page box in this example requires a target sheet size of 8.5&quot;x11&quot; or larger. User agents may allow users to control the transfer of the page box to the sheet (e.g., rotating an absolute page box that's being printed). Rendering page boxes that do not fit a target sheet If a page box does not fit the target sheet dimensions, the user agent may choose to: Rotate the page box 90° if this will make the page box fit. Scale the page to fit the target. The user agent should consult the user before performing these operations. Positioning the page box on the sheet When the page box is smaller than the target size, the user agent is free</del><ins>are relative</ins> to <del>place</del><ins>the dimensions of</ins> the <a
145159
href="#page-box">page box</a> <del>anywhere on</del><ins>; for left and right margins, they refer
146160
to</ins> the <del>sheet. However, it is recommended that</del><ins>width of</ins> the page box <del>be centered on the sheet since this will align double-sided pages</del><ins>while for top</ins> and <del>avoid accidental loss of information that is printed near</del><ins>bottom margins, they
147161
refer to</ins> the <del>edge</del><ins>height</ins> of the <del>sheet. 13.2.3 Crop marks : the 'marks' property 'marks' Value: &nbsp;&nbsp; [ crop || cross ] | none | inherit Initial: &nbsp;&nbsp; none Applies to: &nbsp;&nbsp; page context Inherited: &nbsp;&nbsp; N/A Percentages: &nbsp;&nbsp; N/A Media: &nbsp;&nbsp; visual , paged In high-quality printing, marks are often added outside the</del>page box. <del>This property specifies whether cross marks or crop marks or both should be rendered just outside the page box edge. Crop marks indicate where</del><ins>All other units associated with</ins>

0 commit comments

Comments
 (0)