|
87 | 87 |
|
88 | 88 | <h1>CSS Paged Media Module Level 3</h1> |
89 | 89 |
|
90 | | - <h2 class="no-num no-toc" id=w3c-working>Editor's Draft 12 June 2012</h2> |
| 90 | + <h2 class="no-num no-toc" id=w3c-working>Editor's Draft 22 June 2012</h2> |
91 | 91 |
|
92 | 92 | <dl> |
93 | 93 | <dt>This version: |
94 | 94 |
|
95 | 95 | <dd><a |
96 | 96 | href="http://dev.w3.org/csswg/css3-page/">http://dev.w3.org/csswg/css3-page/</a></dd> |
97 | | - <!-- <dd><a href="http://www.w3.org/TR/2012/ED-css3-page-20120612/">http://www.w3.org/TR/2012/WD-css3-page-20120612</a></dd> --> |
| 97 | + <!-- <dd><a href="http://www.w3.org/TR/2012/ED-css3-page-20120622/">http://www.w3.org/TR/2012/WD-css3-page-20120622</a></dd> --> |
98 | 98 |
|
99 | 99 | <dt>Latest version: |
100 | 100 |
|
@@ -179,7 +179,7 @@ <h2 class="no-num no-toc" id=status>Status of this Document</h2> |
179 | 179 | <p>This document contains the <abbr |
180 | 180 | title="Cascading Style Sheets">CSS3</abbr> Paged Media Module W3C Last |
181 | 181 | Call <a href="/2005/10/Process-20051014/tr.html#RecsWD">Working Draft</a> |
182 | | - of 12 June 2012. The Last Call period ends on <span |
| 182 | + of 22 June 2012. The Last Call period ends on <span |
183 | 183 | class=fudge>TBD</span>.</p> |
184 | 184 |
|
185 | 185 | <p>Relative to the previous Last Call Working Draft, this version has |
@@ -220,12 +220,12 @@ <h2 class="no-num no-toc" id=contents>Table of Contents</h2> |
220 | 220 | <li><a href="#page-box-page-rule"><span class=secno>4. </span>The Page |
221 | 221 | Model</a> |
222 | 222 | <ul class=toc> |
223 | | - <li><a href="#content-outside-box"><span class=secno>4.1. |
224 | | - </span>Content outside the page box</a> |
225 | | - |
226 | | - <li><a href="#painting"><span class=secno>4.2. </span>Page Backgrounds |
| 223 | + <li><a href="#painting"><span class=secno>4.1. </span> Page Backgrounds |
227 | 224 | and Painting Order</a> |
228 | 225 |
|
| 226 | + <li><a href="#content-outside-box"><span class=secno>4.2. |
| 227 | + </span>Content outside the page box</a> |
| 228 | + |
229 | 229 | <li><a href="#progression"><span class=secno>4.3. </span>Page |
230 | 230 | Progression</a> |
231 | 231 | </ul> |
@@ -585,7 +585,67 @@ <h2 id=page-box-page-rule><span class=secno>4. </span>The Page Model</h2> |
585 | 585 | instead of ignoring any margins, the containing block is resized to |
586 | 586 | coincide with the margin edges of the page box. |
587 | 587 |
|
588 | | - <h3 id=content-outside-box><span class=secno>4.1. </span>Content outside |
| 588 | + <h3 id=painting><span class=secno>4.1. </span> Page Backgrounds and |
| 589 | + Painting Order</h3> |
| 590 | + |
| 591 | + <p>When drawing a page of content, the page layers are painted in the |
| 592 | + following painting order (bottommost first): |
| 593 | + |
| 594 | + <ol> |
| 595 | + <li>page background |
| 596 | + |
| 597 | + <li>document canvas |
| 598 | + |
| 599 | + <li>page borders |
| 600 | + |
| 601 | + <li>document contents |
| 602 | + |
| 603 | + <li>margin boxes |
| 604 | + </ol> |
| 605 | + |
| 606 | + <p>In the page model, the page background behaves similar to the root |
| 607 | + background: its <a |
| 608 | + href="http://www.w3.org/TR/css3-background/#background-painting-area"><i>background |
| 609 | + painting area</i></a> is the entire page box, including its margins. |
| 610 | + Background images are positioned under similar rules as the root element. |
| 611 | + By default, they are anchored within the page box's padding area (and |
| 612 | + honor ‘<code class=property>background-origin</code>’ if the UA |
| 613 | + supports <a href="#CSS3BG" |
| 614 | + rel=biblioentry>[CSS3BG]<!--{{!CSS3BG}}--></a>). However if ‘<code |
| 615 | + class=property>background-attachment</code>’ is ‘<code |
| 616 | + class=css>fixed</code>’ then the image is positioned relative to the |
| 617 | + page box including its margins (i.e. the <a |
| 618 | + href="http://www.w3.org/TR/css3-background/#background-positioning-area"><i>background |
| 619 | + positioning area</i></a>, like the <i>background painting area</i>, is |
| 620 | + the page's margin box). |
| 621 | + |
| 622 | + <p>The document canvas background is drawn as the page box's background: |
| 623 | + by default its <i>background painting area</i> is the page box's border |
| 624 | + box. (For UAs that support <a href="#CSS3BG" |
| 625 | + rel=biblioentry>[CSS3BG]<!--{{!CSS3BG}}--></a>, it follows the ‘<code |
| 626 | + class=property>background-clip</code>’ value specified on the root |
| 627 | + element.) It remains, however, positioned with respect to the root |
| 628 | + element or page area as usual. |
| 629 | + |
| 630 | + <p>The UA may support the <code>z-index</code> property for margin boxes. |
| 631 | + With respect to the margin boxes, the document canvas, page borders, and |
| 632 | + all of the document contents are treated as a single element with a |
| 633 | + <code>z-index</code> value of ‘<code class=css>0</code>’: the margin |
| 634 | + boxes never interleave with parts of the document content or between the |
| 635 | + content and the canvas. They may only paint in front of the document |
| 636 | + content or behind the document canvas. The page background is always |
| 637 | + painted underneath everything else. Since the <code>position</code> |
| 638 | + property does not apply to margin boxes, <code>z-index</code> always |
| 639 | + affects margin boxes as if they were positioned elements regardless of |
| 640 | + the <code>position</code> property's value. |
| 641 | + |
| 642 | + <p>The default painting order, or <a |
| 643 | + href="http://www.w3.org/TR/CSS21/zindex.html">CSS2.1 Appendix E</a> "tree |
| 644 | + order", of margin boxes with respect to each other is not specified. |
| 645 | + However, the margin boxes are defined to come after the page box and its |
| 646 | + contents. <span class=issue>Suggestions here are welcome.</span> |
| 647 | + |
| 648 | + <h3 id=content-outside-box><span class=secno>4.2. </span>Content outside |
589 | 649 | the page box</h3> |
590 | 650 |
|
591 | 651 | <p>When formatting content in the page model, some content may end up |
@@ -649,38 +709,6 @@ <h3 id=content-outside-box><span class=secno>4.1. </span>Content outside |
649 | 709 | page boxes for them at the end of the document. |
650 | 710 | </ul> |
651 | 711 |
|
652 | | - <h3 id=painting><span class=secno>4.2. </span>Page Backgrounds and |
653 | | - Painting Order</h3> |
654 | | - |
655 | | - <p>When drawing a page of content, the page background and borders are |
656 | | - painted first (underneath). Margin-boxes are painted over (on top of) the |
657 | | - page box. The root element then paints the canvas and the document |
658 | | - contents within the page padding box.</p> |
659 | | - |
660 | | - <p>The exact painting order of margin boxes is not specified, however it |
661 | | - is <em class=RFC2119>recommended</em> that when margin boxes overlap, |
662 | | - paint order should place center/middle margin boxes on top of corner |
663 | | - margin boxes, which are in turn painted on top of other boxes. More |
664 | | - precisely, in terms of the algorithm in <a |
665 | | - href="http://www.w3.org/TR/CSS21/zindex.html">CSS2.1 Appendix E</a> the |
666 | | - exact "tree order" of margin boxes is not defined, but it is recommended |
667 | | - that center/middle boxes be after corner boxes, which should themselves |
668 | | - be after other boxes.</p> |
669 | | - |
670 | | - <p>The UA may support the <code>z-index</code> property for margin boxes. |
671 | | - In this case the root element, together with the canvas background and |
672 | | - all of the document contents, are treated as a single element with a |
673 | | - <code>z-index</code> value of ‘<code class=css>0</code>’: the margin |
674 | | - boxes never interleave with parts of the document content, they may only |
675 | | - paint in front of or behind the document content and its canvas. The page |
676 | | - box itself generates a new stacking context and is treated as the parent |
677 | | - of all the margin boxes as well as the document content. In other words, |
678 | | - nothing ever paints behind the page box backgrounds or borders. Since the |
679 | | - <code>position</code> property does not apply to margin boxes, |
680 | | - <code>z-index</code> always affects margin boxes as if they were |
681 | | - positioned elements regardless of the <code>position</code> property's |
682 | | - value. <span class=issue>Mark this at-risk.</span></p> |
683 | | - |
684 | 712 | <h3 id=progression><span class=secno>4.3. </span>Page Progression</h3> |
685 | 713 |
|
686 | 714 | <p>CSS distinguishes between left pages and right pages on all documents, |
@@ -1815,12 +1843,8 @@ <h2 id=page-properties><span class=secno>7. </span>Page Properties</h2> |
1815 | 1843 | and <a href="#margin-box-dimensions">Computing Margin Box |
1816 | 1844 | Dimensions</a>. |
1817 | 1845 |
|
1818 | | - <li>The page background covers the entire page box, including the page |
1819 | | - margins. Background images are positioned as for any other box, by |
1820 | | - default anchored within the page box's padding area; however if |
1821 | | - ‘<code class=property>background-attachment</code>’ is ‘<code |
1822 | | - class=property>fixed</code>’ then the image is positioned relative to |
1823 | | - the page box including its margins. |
| 1846 | + <li>The page background is positioned and painted <a href="#painting">as |
| 1847 | + described above</a>. |
1824 | 1848 |
|
1825 | 1849 | <li>The rules for counter scoping are modified <a |
1826 | 1850 | href=page-based-counters>as described below</a>. |
@@ -3641,6 +3665,16 @@ <h3 class=no-num id=normative-references>Normative References</h3> |
3641 | 3665 | </dd> |
3642 | 3666 | <!----> |
3643 | 3667 |
|
| 3668 | + <dt id=CSS3BG>[CSS3BG] |
| 3669 | + |
| 3670 | + <dd>Bert Bos; Elika J. Etemad; Brad Kemper. <a |
| 3671 | + href="http://www.w3.org/TR/2012/CR-css3-background-20120417/"><cite>CSS |
| 3672 | + Backgrounds and Borders Module Level 3.</cite></a> 17 April 2012. W3C |
| 3673 | + Candidate Recommendation. (Work in progress.) URL: <a |
| 3674 | + href="http://www.w3.org/TR/2012/CR-css3-background-20120417/">http://www.w3.org/TR/2012/CR-css3-background-20120417/</a> |
| 3675 | + </dd> |
| 3676 | + <!----> |
| 3677 | + |
3644 | 3678 | <dt id=MEDIAQ>[MEDIAQ] |
3645 | 3679 |
|
3646 | 3680 | <dd>Florian Rivoal. <a |
|
0 commit comments