Skip to content

Commit a5e23a2

Browse files
committed
Various fixes to errors reported by Lobotom Dysmon <http://lists.w3.org/Archives/Public/www-style/2010Nov/0098.html>
1 parent b7568a9 commit a5e23a2

2 files changed

Lines changed: 45 additions & 45 deletions

File tree

css3-page/Overview.html

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -695,9 +695,9 @@ <h3 id=progression><span class=secno>4.3. </span>Page Progression</h3>
695695
printed pages of a document would be sequenced when laid out
696696
side-to-side. For example, English and horizontally-set Japanese
697697
typically progress from left to right, whereas Arabic and vertically-set
698-
Japanese pages typically progress from right to left. In documents with
699-
with a left-to-right page progression the first page of the document is a
700-
right page, and vice versa.</p>
698+
Japanese pages typically progress from right to left. In documents with a
699+
left-to-right page progression the first page of the document is a right
700+
page, and vice versa.</p>
701701

702702
<p>The page progression direction is determined as follows:</p>
703703

@@ -1083,7 +1083,7 @@ <h2 id=margin-boxes><span class=secno>6. </span>Margin Boxes</h2>
10831083
margin boxes of the binding edge of the page for the page footer.</p>
10841084
</div>
10851085

1086-
<p>Margin boxes are oriented with respect to the content and are
1086+
<p>Margin boxes are positioned with respect to the page area and are
10871087
independent of page orientation, for example the top margin boxes are
10881088
above the page area in both portrait and landscape orientation. The
10891089
various margin boxes are defined and illustrated in the diagram below:
@@ -1817,9 +1817,8 @@ <h2 id=page-properties><span class=secno>7. </span>Page Properties</h2>
18171817

18181818
<li>The page background covers the entire page box, including the page
18191819
margins. Background images are positioned as for any other box, by
1820-
default anchored within the page area (i.e. the page box's content
1821-
box); however if ‘<code
1822-
class=property>background-attachment</code>’ is ‘<code
1820+
default anchored within the page box's padding area; however if
1821+
<code class=property>background-attachment</code>’ is ‘<code
18231822
class=property>fixed</code>’ then the image is positioned relative to
18241823
the page box including its margins.
18251824

@@ -2136,17 +2135,13 @@ <h3 id=page-size-prop><span class=secno>8.1. </span>Page size: the ‘<a
21362135
indicates the size of the destination page sheet.
21372136

21382137
<p>The size of a page box can either be "absolute" (fixed size) or
2139-
"relative" (scalable, i.e., fitting available sheet sizes).</p>
2140-
2141-
<p>The first three values in the table below can be used to create
2142-
relative page boxes.</p>
2143-
2144-
<p>Other values define a fixed-size page box, and thereby indicate the
2145-
preferred output media size. When possible, output should be rendered on
2146-
the media size indicated. If the specified size is not available, the
2147-
smallest available larger size should be used; if not available, the
2148-
contents of the page box should be scaled down to fit the largest
2149-
smaller page sheet available.</p>
2138+
"scalable" (i.e., fitting available sheet sizes). The first three values
2139+
in the table below can be used to create scalable page boxes. Other
2140+
values define a fixed-size page box, and thereby indicate the preferred
2141+
output media size. When possible, output should be rendered on the media
2142+
size indicated. If the specified size is not available, the rules for <a
2143+
href="#renderingpages">transposing a page box to a different size</a>
2144+
apply.</p>
21502145

21512146
<p>If a <a href="#size"><code>size</code></a> property declaration is
21522147
qualified by a ‘<code class=css>width</code>’, ‘<code
@@ -2162,6 +2157,9 @@ <h3 id=page-size-prop><span class=secno>8.1. </span>Page size: the ‘<a
21622157
class=property>size</code></a>’: they assume the paper size that would
21632158
be chosen if no @page rules were specified.</p>
21642159

2160+
<p class=issue>It would be useful if media queries could respond at least
2161+
to sizes specified on an unqualified @page.
2162+
21652163
<div class=example>
21662164
<p>In the following example
21672165

@@ -2359,8 +2357,7 @@ <h3 id=renderingpages><span class=secno>8.2. </span>Rendering page boxes
23592357
that do not fit a page sheet</h3>
23602358

23612359
<p>If a page box does not match the target page sheet dimensions, the
2362-
user agent <em class=RFC2119>MAY</em> choose (in order of preference)
2363-
to:</p>
2360+
user agent should do one of the following (in order of preference):</p>
23642361

23652362
<ol>
23662363
<li>Render the page box at the indicated size on a larger page sheet.
@@ -2443,7 +2440,7 @@ <h3 id=pg-br-before-after><span class=secno>9.1. </span>Break
24432440
<tr>
24442441
<th>Applies to:
24452442

2446-
<td>block-level elements
2443+
<td>block-level boxes, table row groups, table rows (but see prose)
24472444

24482445
<tr>
24492446
<th>Inherited:
@@ -2746,7 +2743,7 @@ <h3 id=breaks-inside><span class=secno>9.3. </span>Breaks inside
27462743
<tr>
27472744
<th>Applies to:
27482745

2749-
<td>block-level elements
2746+
<td>block containers
27502747

27512748
<tr>
27522749
<th>Inherited:
@@ -2761,7 +2758,7 @@ <h3 id=breaks-inside><span class=secno>9.3. </span>Breaks inside
27612758
<tr>
27622759
<th>Media:
27632760

2764-
<td>visual
2761+
<td>paged
27652762

27662763
<tr>
27672764
<th>Computed value:
@@ -2789,7 +2786,7 @@ <h3 id=breaks-inside><span class=secno>9.3. </span>Breaks inside
27892786
<tr>
27902787
<th>Applies to:
27912788

2792-
<td>block-level elements
2789+
<td>block containers
27932790

27942791
<tr>
27952792
<th>Inherited:
@@ -2804,7 +2801,7 @@ <h3 id=breaks-inside><span class=secno>9.3. </span>Breaks inside
28042801
<tr>
28052802
<th>Media:
28062803

2807-
<td>visual
2804+
<td>paged
28082805

28092806
<tr>
28102807
<th>Computed value:

css3-page/Overview.src.html

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ <h2 id="page-terms">Page Terminology</h2>
223223
particular printing device; but when its dimensions are known, user agents
224224
<em class="RFC2119">MAY</em> adjust the formatting of the document so that
225225
content falls within the printable area. How this adjustment is accomplished is
226-
device dependent within the constraints expressed in the sections <a href="#renderingpages">Rendering page boxes that do not fit a page sheet</a> and
226+
device dependent within the constraints expressed in the sections
227+
<a href="#renderingpages">Rendering page boxes that do not fit a page sheet</a> and
227228
<a href="#content-outside-box">Content outside the page box</a>.</dd>
228229

229230
<dt id="page-orientation">Page Orientation</dt>
@@ -422,7 +423,7 @@ <h3 id="progression">Page Progression</h3>
422423
is the direction in which the printed pages of a document would be sequenced
423424
when laid out side-to-side. For example, English and horizontally-set Japanese
424425
typically progress from left to right, whereas Arabic and vertically-set
425-
Japanese pages typically progress from right to left. In documents with with
426+
Japanese pages typically progress from right to left. In documents with
426427
a left-to-right page progression the first page of the document is a right
427428
page, and vice versa.</p>
428429

@@ -753,7 +754,7 @@ <h2 id="margin-boxes">Margin Boxes</h2>
753754
could use the margin boxes of the binding edge of the page for the page footer.</p>
754755
</div>
755756

756-
<p>Margin boxes are oriented with respect to the content and are independent of
757+
<p>Margin boxes are positioned with respect to the page area and are independent of
757758
page orientation, for example the top margin boxes are above the page area in
758759
both portrait and landscape orientation. The various margin boxes are defined
759760
and illustrated in the diagram below:
@@ -1273,7 +1274,7 @@ <h2 id="page-properties">Page Properties</h2>
12731274
and <a href="#margin-box-dimensions">Computing Margin Box Dimensions</a>.
12741275
<li>The page background covers the entire page box, including the page margins.
12751276
Background images are positioned as for any other box, by default anchored
1276-
within the page area (i.e. the page box's content box); however if
1277+
within the page box's padding area; however if
12771278
'background-attachment' is 'fixed' then the image is positioned relative to
12781279
the page box including its margins.</li>
12791280
<li>The rules for counter scoping are modified <a href="page-based-counters">as
@@ -1510,17 +1511,16 @@ <h3 id="page-size-prop">Page size: the 'size' property</h3>
15101511
In the general case, where one page box is rendered onto one <a href="#page-sheet">page sheet</a>,
15111512
the 'size' property also indicates the size of the destination page sheet.
15121513

1513-
<p>The size of a page box can either be "absolute" (fixed size) or "relative"
1514-
(scalable, i.e., fitting available sheet sizes).</p>
1515-
1516-
<p>The first three values in the table below can be used to create relative page
1517-
boxes.</p>
1518-
1519-
<p>Other values define a fixed-size page box, and thereby indicate the preferred
1514+
<p>The size of a page box can either be "absolute" (fixed size) or "scalable"
1515+
(i.e., fitting available sheet sizes).
1516+
The first three values in the table below can be used to create scalable page
1517+
boxes.
1518+
Other values define a fixed-size page box, and thereby indicate the preferred
15201519
output media size. When possible, output should be rendered on the media size
1521-
indicated. If the specified size is not available, the smallest available
1522-
larger size should be used; if not available, the contents of the page box
1523-
should be scaled down to fit the largest smaller page sheet available.</p>
1520+
indicated.
1521+
If the specified size is not available, the rules for
1522+
<a href="#renderingpages">transposing a page box to a different size</a>
1523+
apply.</p>
15241524

15251525
<p>If a <code>size</code> property declaration is qualified by a ''width'',
15261526
''height'', ''device-width'', ''device-height'', ''aspect-ratio'',
@@ -1531,6 +1531,9 @@ <h3 id="page-size-prop">Page size: the 'size' property</h3>
15311531
queries do not honor 'size': they assume the paper size that would be chosen
15321532
if no @page rules were specified.</p>
15331533

1534+
<p class=issue>It would be useful if media queries could respond at least
1535+
to sizes specified on an unqualified @page.
1536+
15341537
<div class="example">
15351538
<p>In the following example
15361539
<pre>
@@ -1695,7 +1698,7 @@ <h4 id="page-size-media-query">Media Queries</h4>
16951698
<h3 id="renderingpages">Rendering page boxes that do not fit a page sheet</h3>
16961699

16971700
<p>If a page box does not match the target page sheet dimensions, the user agent
1698-
<em class="RFC2119">MAY</em> choose (in order of preference) to:</p>
1701+
should do one of the following (in order of preference):</p>
16991702

17001703
<ol>
17011704
<li>Render the page box at the indicated size on a larger page sheet.</li>
@@ -1753,7 +1756,7 @@ <h3 id="pg-br-before-after">Break before/after elements: <span class="property">
17531756
<td>auto
17541757
<tr>
17551758
<th>Applies to:
1756-
<td>block-level elements
1759+
<td>block-level boxes, table row groups, table rows (but see prose)
17571760
<tr>
17581761
<th>Inherited:
17591762
<td>no
@@ -1964,7 +1967,7 @@ <h3 id="breaks-inside">Breaks inside elements: 'orphans', 'widows'</h3>
19641967
<td>2
19651968
<tr>
19661969
<th>Applies to:
1967-
<td>block-level elements
1970+
<td>block containers
19681971
<tr>
19691972
<th>Inherited:
19701973
<td>yes
@@ -1973,7 +1976,7 @@ <h3 id="breaks-inside">Breaks inside elements: 'orphans', 'widows'</h3>
19731976
<td>N/A
19741977
<tr>
19751978
<th>Media:
1976-
<td>visual
1979+
<td>paged
19771980
<tr>
19781981
<th>Computed value:
19791982
<td>specified value
@@ -1991,7 +1994,7 @@ <h3 id="breaks-inside">Breaks inside elements: 'orphans', 'widows'</h3>
19911994
<td>2
19921995
<tr>
19931996
<th>Applies to:
1994-
<td>block-level elements
1997+
<td>block containers
19951998
<tr>
19961999
<th>Inherited:
19972000
<td>yes
@@ -2000,7 +2003,7 @@ <h3 id="breaks-inside">Breaks inside elements: 'orphans', 'widows'</h3>
20002003
<td>N/A
20012004
<tr>
20022005
<th>Media:
2003-
<td>visual
2006+
<td>paged
20042007
<tr>
20052008
<th>Computed value:
20062009
<td>specified value

0 commit comments

Comments
 (0)