Skip to content

Commit f963f63

Browse files
committed
blah blah
1 parent a3f441f commit f963f63

2 files changed

Lines changed: 100 additions & 56 deletions

File tree

css3-page/Overview.html

Lines changed: 65 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
rel=dcterms.rights>
1010
<meta content=" CSS Paged Media Module Level 3" name=dcterms.title>
1111
<meta content=text name=dcterms.type>
12-
<meta content=2013-03-12 name=dcterms.issued>
12+
<meta content=2013-03-13 name=dcterms.issued>
1313
<meta content="Melinda Grant" name=dcterms.creator>
1414
<meta content="Håkon Wium Lie" name=dcterms.creator>
1515
<meta content="Elika J. Etemad" name=dcterms.creator>
@@ -100,20 +100,20 @@
100100
<h1 class=p-name>CSS Paged Media Module Level 3</h1>
101101

102102
<h2 class="no-num no-toc" id=w3c-working>Editor's Draft <span
103-
class=dt-updated><span class=value-title title=20130312>12 March
103+
class=dt-updated><span class=value-title title=20130313>13 March
104104
2013</span></span></h2>
105105

106106
<dl>
107107
<dt>This version:
108108

109109
<dd><a class=u-url
110110
href="http://dev.w3.org/csswg/css3-page/">http://dev.w3.org/csswg/css3-page/</a></dd>
111-
<!-- <dd><a class="u-url" href="http://dev.w3.org/csswg/css3-page/">http://www.w3.org/TR/2013/WD-css3-page-20130312</a></dd> -->
111+
<!-- <dd><a class="u-url" href="http://dev.w3.org/csswg/css3-page/">http://www.w3.org/TR/2013/WD-css3-page-20130313</a></dd> -->
112112

113113
<dt>Latest version:
114114

115115
<dd><a
116-
href="http://www.w3.org/TR/css3-page">http://www.w3.org/TR/css3-page</a>
116+
href="http://www.w3.org/TR/css3-page/">http://www.w3.org/TR/css3-page/</a>
117117

118118
<dt>Previous version:
119119

@@ -124,10 +124,6 @@ <h2 class="no-num no-toc" id=w3c-working>Editor's Draft <span
124124

125125
<dd><a href="http://www.w3.org/Style/CSS/Tracker/products/13"
126126
rel=issues>http://www.w3.org/Style/CSS/Tracker/products/13</a>
127-
<!-- or use the wiki:
128-
<dd><a rel="issues" href="http://wiki.csswg.org/spec/css3-page"
129-
>http://wiki.csswg.org/spec/css3-page</a></dd>
130-
-->
131127

132128
<dt>Feedback:
133129

@@ -226,8 +222,7 @@ <h2 class="no-num no-toc" id=contents>Table of Contents</h2>
226222
<li><a href="#page-terms"><span class=secno>3. </span>Page
227223
Terminology</a>
228224

229-
<li><a href="#page-box-page-rule"><span class=secno>4. </span>The Page
230-
Model</a>
225+
<li><a href="#page-model"><span class=secno>4. </span>The Page Model</a>
231226
<ul class=toc>
232227
<li><a href="#painting"><span class=secno>4.1. </span> Page Backgrounds
233228
and Painting Order</a>
@@ -535,7 +530,7 @@ <h2 id=page-terms><span class=secno>3. </span>Page Terminology</h2>
535530
pages as typically laid out. Page layouts for documents using a
536531
left-to-right page progression have the earlier of the facing pages on
537532
the left. Rules specific to the left page can be specified using the
538-
<a href="#left"><code class=css>left</code></a><a
533+
<a href="#left"><code class=css>:left</code></a><a
539534
href="#page-selector"><i>page selector</i></a>.
540535

541536
<dt><dfn id=right-page>Right Page</dfn>
@@ -548,7 +543,7 @@ <h2 id=page-terms><span class=secno>3. </span>Page Terminology</h2>
548543
href="#page-selector"><i>page selector</i></a>.
549544
</dl>
550545

551-
<h2 id=page-box-page-rule><span class=secno>4. </span>The Page Model</h2>
546+
<h2 id=page-model><span class=secno>4. </span>The Page Model</h2>
552547

553548
<p>In the paged media formatting model, the document is transferred into
554549
one or more page boxes. The <dfn id=page-box>page box</dfn> is a
@@ -844,7 +839,8 @@ <h3 id=progression><span class=secno>4.3. </span>Page Progression</h3>
844839
<h2 id=page-selector-and-context><span class=secno>5. </span> Page
845840
Selectors and the Page Context</h2>
846841

847-
<h3 id=at-page-rule><span class=secno>5.1. </span> The @page Rule</h3>
842+
<h3 id=at-page-rule><span class=secno>5.1. </span><a
843+
id=page-box-page-rule></a> The @page Rule</h3>
848844

849845
<p>Authors can specify various aspects of a page box, such as its
850846
dimensions, orientation, and margins, within an ‘<code
@@ -903,11 +899,12 @@ <h3 id=page-selectors><span class=secno>5.2. </span>Page selectors</h3>
903899

904900
<p>A <dfn id=page-pseudo-class>page pseudo-class</dfn> is <a
905901
href="http://www.w3.org/TR/CSS21/syndata.html#characters">ASCII
906-
case-insensitive</a> and has the same syntax as regular a <a
907-
href="http://www.w3.org/TR/selectors/#pseudo-classes">pseudo-classes</a>.
908-
<a href="#SELECT" rel=biblioentry>[SELECT]<!--{{!SELECT}}--></a> The
909-
various <a href="#page-pseudo-class"><i>page pseudo-classes</i></a> are
910-
defined below.
902+
case-insensitive</a> and has the same syntax as <a
903+
href="http://www.w3.org/TR/selectors/#pseudo-classes">pseudo-classes</a>
904+
in regular Selectors. <a href="#SELECT"
905+
rel=biblioentry>[SELECT]<!--{{!SELECT}}--></a> The various <a
906+
href="#page-pseudo-class"><i>page pseudo-classes</i></a> are defined
907+
below.
911908

912909
<h4 id=spread-pseudos><span class=secno>5.2.1. </span><a
913910
id=left-right-first></a> Spread pseudo-classes: ‘<a href="#left"><code
@@ -1689,14 +1686,16 @@ <h5 id=variable-auto-sizing><span class=secno>6.3.2.2. </span>Resolving
16891686
difference the <i>flex space</i>. Calculate each box's <i>flex
16901687
factor</i> as proportional to its outer <i>max-content width</i>, and
16911688
set its used outer width to:
1692-
<pre><i>max-content width</i> + <i>flex space</i> × <i>flex factor</i> ÷ ∑<i>flex factors</i></pre>
1689+
<p><code><i>max-content width</i> + <i>flex space</i> × <i>flex
1690+
factor</i> ÷ ∑<i>flex factors</i></code>
16931691

16941692
<li>Otherwise if the sum of the outer <i>min-content widths</i> is less
16951693
than the <a href="#available-width"><i>available width</i></a>, call
16961694
that difference the <i>flex space</i> calculate each box's <i>flex
16971695
factor</i> as proportional to its <i>max-content</i> minus
16981696
<i>min-content</i>, and set its used outer width to:
1699-
<pre><i>min-content width</i> + <i>flex space</i> × <i>flex factor</i> ÷ ∑<i>flex factors</i></pre>
1697+
<p><code><i>min-content width</i> + <i>flex space</i> × <i>flex
1698+
factor</i> ÷ ∑<i>flex factors</i></code>
17001699

17011700
<li>Otherwise, calculate its outer size as in the previous case, but
17021701
set each box's <i>flex factor</i> as proportional to its outer
@@ -1715,15 +1714,12 @@ <h5 id=variable-auto-sizing><span class=secno>6.3.2.2. </span>Resolving
17151714
middle box (B): Assume there are two boxes, B and AC, where each of AC's
17161715
dimensions is double the maximum of A and C. (This preserves B's
17171716
centering.) Distribute the space to these two boxes (B and the imaginary
1718-
AC) as described for A and C <a href="#fit2">above</a>.
1717+
AC) as described for A and C <a href="#flex-fit">above</a>.
17191718

17201719
<li> Then, resolve any ‘<code class=css>auto</code>’ widths of the
17211720
side boxes (A and C) by setting that box's outer width to
1722-
<pre>(<a
1723-
href="#available-width"><i>available width</i></a><i>used outer size of B</i>) ÷ 2</pre>
1724-
1725-
<pre>
1726-
</pre>
1721+
<p><code>(<a href="#available-width"><i>available width</i></a>
1722+
<i>used outer size of B</i>) ÷ 2</code>
17271723
</ol>
17281724

17291725
<h5 id=variable-minmax><span class=secno>6.3.2.3. </span>Handling ‘<code
@@ -1742,8 +1738,8 @@ <h5 id=variable-minmax><span class=secno>6.3.2.3. </span>Handling ‘<code
17421738
<li> The tentative used widths are calculated (without ‘<code
17431739
class=property>min-width</code>’ and ‘<code
17441740
class=property>max-width</code>’) following the rules under <a
1745-
href="#marginbox-variabledim-with">Resolving ‘<code
1746-
class=css>auto</code>widths</a> above.
1741+
href="#variable-auto-sizing">Resolving ‘<code class=css>auto</code>
1742+
widths</a> above.
17471743

17481744
<li> If the tentative used width of any of the three boxes is greater
17491745
than ‘<code class=property>max-width</code>’, the rules above are
@@ -2047,14 +2043,14 @@ <h2 id=page-properties><span class=secno>7. </span>Page Properties</h2>
20472043
<li>The used values of ‘<code class=property>width</code>’ and
20482044
<code class=property>height</code>’ have special computation rules
20492045
for page boxes and page-margin boxes; see <a href="#page-size">Page
2050-
Size</a> and <a href="#margin-box-dimensions">Computing Page-Margin Box
2046+
Size</a> and <a href="#margin-dimension">Computing Page-Margin Box
20512047
Dimensions</a>.
20522048

20532049
<li>The page background is positioned and painted <a href="#painting">as
20542050
described above</a>.
20552051

20562052
<li>The rules for counter scoping are modified <a
2057-
href=page-based-counters>as described below</a>.
2053+
href="#page-based-counters">as described below</a>.
20582054

20592055
<li> As on the ‘<code class=css>::before</code>’ and ‘<code
20602056
class=css>::after</code>’ pseudo-elements, the ‘<code
@@ -2154,7 +2150,8 @@ <h3 id=page-based-counters><span class=secno>7.1. </span>Page-based
21542150

21552151
<p>In all other respects, page-associated counters behave as described in
21562152
<a href="#CSS21" rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>, <a
2157-
href="TR/CSS21/generate.html#scope">Nested Counters and Scope</a> and <a
2153+
href="http://www.w3.org/TR/CSS21/generate.html#scope">Nested Counters
2154+
and Scope</a> and <a
21582155
href="http://www.w3.org/TR/CSS21/syndata.html#counter">Counters</a>.
21592156

21602157
<h3 id=margin-text-alignment><span class=secno>7.2. </span>Page-margin
@@ -2398,8 +2395,23 @@ <h3 id=page-size-prop><span class=secno>8.1. </span>Page size: the ‘<a
23982395
class=property>size</code></a>’: they assume the paper size that would
23992396
be chosen if no @page rules were specified.
24002397

2401-
<p class=issue>It would be useful if media queries could respond at least
2402-
to sizes specified on an unqualified @page.
2398+
<div class=issue>
2399+
<p>It would be useful if media queries could respond at least to sizes
2400+
specified on an unqualified @page.
2401+
2402+
<p>Another option could be to do like ‘<code
2403+
class=css>@viewport</code>’ rules <a href="#CSS-DEVICE-ADAPT"
2404+
rel=biblioentry>[CSS-DEVICE-ADAPT]<!--{{CSS-DEVICE-ADAPT}}--></a>:
2405+
First apply ‘<code class=css>@page</code>’ rules (matching which
2406+
selectors?), using the UA’s default page size for Media Queries and
2407+
<a
2408+
href="http://www.w3.org/TR/css3-values/#viewport-relative-lengths">viewport-percentage
2409+
lengths</a> <a href="#CSS3VAL"
2410+
rel=biblioentry>[CSS3VAL]<!--{{CSS3VAL}}--></a>. The resulting page
2411+
size is the "base page size". The entire set of stylesheets is applied
2412+
again, this time using the "base page size" for Media Queries and
2413+
viewport-percentage lengths.
2414+
</div>
24032415

24042416
<div class=example>
24052417
<p>In the following example
@@ -3586,6 +3598,16 @@ <h3 class=no-num id=informative-references>Informative References</h3>
35863598
style="display: none"><!-- keeps the doc valid if the DL is empty -->
35873599
<!---->
35883600

3601+
<dt id=CSS-DEVICE-ADAPT>[CSS-DEVICE-ADAPT]
3602+
3603+
<dd>Rune Lillesveen. <a
3604+
href="http://www.w3.org/TR/2011/WD-css-device-adapt-20110915/"><cite>CSS
3605+
Device Adaptation.</cite></a> 15 September 2011. W3C Working Draft.
3606+
(Work in progress.) URL: <a
3607+
href="http://www.w3.org/TR/2011/WD-css-device-adapt-20110915/">http://www.w3.org/TR/2011/WD-css-device-adapt-20110915/</a>
3608+
</dd>
3609+
<!---->
3610+
35893611
<dt id=CSS3-IMAGES>[CSS3-IMAGES]
35903612

35913613
<dd>Elika J. Etemad; Tab Atkins Jr. <a
@@ -3606,6 +3628,16 @@ <h3 class=no-num id=informative-references>Informative References</h3>
36063628
</dd>
36073629
<!---->
36083630

3631+
<dt id=CSS3VAL>[CSS3VAL]
3632+
3633+
<dd>Håkon Wium Lie; Tab Atkins; Elika J. Etemad. <a
3634+
href="http://www.w3.org/TR/2012/CR-css3-values-20120828/"><cite>CSS
3635+
Values and Units Module Level 3.</cite></a> 28 August 2012. W3C
3636+
Candidate Recommendation. (Work in progress.) URL: <a
3637+
href="http://www.w3.org/TR/2012/CR-css3-values-20120828/">http://www.w3.org/TR/2012/CR-css3-values-20120828/</a>
3638+
</dd>
3639+
<!---->
3640+
36093641
<dt id=JLREQ>[JLREQ]
36103642

36113643
<dd>Yasuhiro Anan; et al. <a

0 commit comments

Comments
 (0)