|
24 | 24 |
|
25 | 25 | <h1>CSS Generated Content for Paged Media Module</h1> |
26 | 26 |
|
27 | | - <h2 class="no-num no-toc" id=w3c-working>Editor's Draft 25 December 2011</h2> |
| 27 | + <h2 class="no-num no-toc" id=w3c-working>Editor's Draft 26 December 2011</h2> |
28 | 28 |
|
29 | 29 | <dl> |
30 | 30 | <dt>This version: |
31 | 31 |
|
32 | 32 | <dd><a |
33 | | - href="http://www.w3.org/TR/2011/ED-css3-gcpm-20111225/">http://www.w3.org/TR/2011/ED-css3-gcpm-20111225/</a> |
| 33 | + href="http://www.w3.org/TR/2011/ED-css3-gcpm-20111226/">http://www.w3.org/TR/2011/ED-css3-gcpm-20111226/</a> |
34 | 34 |
|
35 | 35 | <dt>Latest version: |
36 | 36 |
|
@@ -254,19 +254,20 @@ <h2 class="no-num no-toc" id=table-of-contents><a name=contents>Table of |
254 | 254 | </span>Turning columns into regions</a> |
255 | 255 | </ul> |
256 | 256 |
|
257 | | - <li><a href="#the-first-page-pseudo-element"><span class=secno>15. |
258 | | - </span>The ‘<code class=property>first-page</code>’ |
259 | | - pseudo-element</a> |
| 257 | + <li><a href="#regions-and-exclusions-examples"><span class=secno>15. |
| 258 | + </span>Regions and Exclusions examples</a> |
260 | 259 |
|
261 | | - <li><a href="#selecting-columns0"><span class=secno>16. </span>Selecting |
262 | | - columns</a> |
263 | | - |
264 | | - <li><a href="#selecting-pages-"><span class=secno>17. </span>Selecting |
265 | | - pages </a> |
| 260 | + <li><a href="#selecting-pages"><span class=secno>16. </span>Selecting |
| 261 | + pages</a> |
| 262 | + <ul class=toc> |
| 263 | + <li><a href="#the-first-page-pseudo-element"><span class=secno>16.1. |
| 264 | + </span>The ‘<code class=property>first-page</code>’ |
| 265 | + pseudo-element</a> |
| 266 | + </ul> |
266 | 267 |
|
267 | | - <li><a href="#conformance"><span class=secno>18. </span>Conformance</a> |
| 268 | + <li><a href="#conformance"><span class=secno>17. </span>Conformance</a> |
268 | 269 |
|
269 | | - <li><a href="#appendix-a-default-style-sheet"><span class=secno>19. |
| 270 | + <li><a href="#appendix-a-default-style-sheet"><span class=secno>18. |
270 | 271 | </span>Appendix A: Default style sheet</a> |
271 | 272 |
|
272 | 273 | <li class=no-num><a href="#acknowledgments">Acknowledgments</a> |
@@ -3617,6 +3618,17 @@ <h3 id=turning-columns-into-regions><span class=secno>14.2. </span>Turning |
3617 | 3618 | </article> |
3618 | 3619 | </pre> |
3619 | 3620 | </div> |
| 3621 | + |
| 3622 | + <div class=example> |
| 3623 | + <pre> |
| 3624 | +div.chapter::column(1) { |
| 3625 | + transform: rotate(6.5deg); |
| 3626 | +} |
| 3627 | +div.chapter::column(2) { |
| 3628 | + transform: rotate(-5.5deg) translate(0, 40px); |
| 3629 | +} |
| 3630 | +</pre> |
| 3631 | + <img src="regions_rotated_columns.jpg"></div> |
3620 | 3632 | <!-- |
3621 | 3633 | <div class=example> |
3622 | 3634 | Consider this markup: |
@@ -3669,73 +3681,16 @@ <h3 id=turning-columns-into-regions><span class=secno>14.2. </span>Turning |
3669 | 3681 | </div> |
3670 | 3682 | --> |
3671 | 3683 |
|
3672 | | - <h2 id=the-first-page-pseudo-element><span class=secno>15. </span>The |
3673 | | - ‘<code class=property>first-page</code>’ pseudo-element</h2> |
| 3684 | + <h2 id=regions-and-exclusions-examples><span class=secno>15. </span>Regions |
| 3685 | + and Exclusions examples</h2> |
3674 | 3686 |
|
3675 | | - <p>The ‘<code class=property>first-page</code>’ pseudo-element |
3676 | | - is used to apply styling to the part of an element that ends up on the |
3677 | | - starting page for that element. If the whole element appears on the |
3678 | | - starting page, ‘<code class=property>first-page</code>’ |
3679 | | - applies to the whole element. The following properties apply to |
3680 | | - :first-page pseudo-elements: column properties, background properties, |
3681 | | - margin properties, border properties, and padding properties. UAs may |
3682 | | - apply other properties as well. |
| 3687 | + <div class=example> <img src="exclusion_ordering_z_order.png"></div> |
3683 | 3688 |
|
3684 | | - <div class=example> |
3685 | | - <p>In this example, there will be one column on the starting page of each |
3686 | | - chapter, while subsequent pages will have two columns: |
| 3689 | + <div class=example> <img src="exclusion_ordering.png"></div> |
3687 | 3690 |
|
3688 | | - <pre> |
3689 | | - div.chapter { columns: 2 } |
3690 | | - div.chapter::first-page { columns: 1 } |
3691 | | -</pre> |
3692 | | - </div> |
| 3691 | + <div class=example> <img src="shapes_CSS2.1_MBP.png"></div> |
3693 | 3692 |
|
3694 | | - <div class=example> |
3695 | | - <p>In this example, padding is added on the left side on the starting page |
3696 | | - of each chapter: |
3697 | | - |
3698 | | - <pre> |
3699 | | - div.chapter { break-before: left } |
3700 | | - div.chapter::first-page { padding-left: 4em } |
3701 | | -</pre> |
3702 | | - </div> |
3703 | | - |
3704 | | - <h2 id=selecting-columns0><span class=secno>16. </span>Selecting columns</h2> |
3705 | | - |
3706 | | - <p class=issue>This is sketchy. |
3707 | | - |
3708 | | - <p>Pseudo-elements are introduced to apply styling to the part of an |
3709 | | - element that ends up on a certain page of column of that element. The |
3710 | | - ‘<code class=css>column(n)</code>’ pseudo-element selects |
3711 | | - columns, the ‘<code class=css>column(n,p)</code>’ |
3712 | | - pseudo-element selects columns on certain pages, nad the ‘<code |
3713 | | - class=css>page(n)</code>’ psedo-element select pages. |
3714 | | - |
3715 | | - <div class=example> |
3716 | | - <pre> |
3717 | | -div.chapter::column(3) /* the third column of the element */ |
3718 | | -div.chapter::column(2n) /* all even columns of the element */ |
3719 | | -div.chapter::column(2,2) /* second column on second page */ |
3720 | | -div.chapter::column(*,2) /* all columns on the second page */ |
3721 | | -div.chapter::page(2) /* second page of the element */ |
3722 | | -div.chapter::page(2-4) /* select page 2, 3, and 4 */ |
3723 | | -div.chapter::page(2)::column(2) /* second column, but only if it appears on the second page */ |
3724 | | -</pre> |
3725 | | - </div> |
3726 | | - |
3727 | | - <div class=example> |
3728 | | - <pre> |
3729 | | -div.chapter::column(1) { |
3730 | | - transform: rotate(6.5deg); |
3731 | | -} |
3732 | | -div.chapter::column(2) { |
3733 | | - transform: rotate(-5.5deg) translate(0, 40px); |
3734 | | -} |
3735 | | -</pre> |
3736 | | - <img src="regions_rotated_columns.jpg"></div> |
3737 | | - |
3738 | | - <h2 id=selecting-pages-><span class=secno>17. </span>Selecting pages</h2> |
| 3693 | + <h2 id=selecting-pages><span class=secno>16. </span>Selecting pages</h2> |
3739 | 3694 |
|
3740 | 3695 | <p>In CSS 2.0, <a |
3741 | 3696 | href="http://www.w3.org/TR/CSS2/page.html#page-selectors">first, left and |
@@ -3807,11 +3762,53 @@ <h2 id=selecting-pages-><span class=secno>17. </span>Selecting pages</h2> |
3807 | 3762 | </pre> |
3808 | 3763 | </div> |
3809 | 3764 |
|
3810 | | - <h2 id=conformance><span class=secno>18. </span>Conformance</h2> |
| 3765 | + <h3 id=the-first-page-pseudo-element><span class=secno>16.1. </span>The |
| 3766 | + ‘<code class=property>first-page</code>’ pseudo-element</h3> |
| 3767 | + |
| 3768 | + <p class=issue>This may no longer be needed du to generic page selectors |
| 3769 | + |
| 3770 | + <p>The ‘<code class=property>first-page</code>’ pseudo-element |
| 3771 | + is used to apply styling to the part of an element that ends up on the |
| 3772 | + starting page for that element. If the whole element appears on the |
| 3773 | + starting page, ‘<code class=property>first-page</code>’ |
| 3774 | + applies to the whole element. The following properties apply to |
| 3775 | + :first-page pseudo-elements: column properties, background properties, |
| 3776 | + margin properties, border properties, and padding properties. UAs may |
| 3777 | + apply other properties as well. |
| 3778 | + |
| 3779 | + <div class=example> |
| 3780 | + <p>In this example, there will be one column on the starting page of each |
| 3781 | + chapter, while subsequent pages will have two columns: |
| 3782 | + |
| 3783 | + <pre> |
| 3784 | + div.chapter { columns: 2 } |
| 3785 | + div.chapter::first-page { columns: 1 } |
| 3786 | +</pre> |
| 3787 | + </div> |
| 3788 | + |
| 3789 | + <div class=example> |
| 3790 | + <p>In this example, padding is added on the left side on the starting page |
| 3791 | + of each chapter: |
| 3792 | + |
| 3793 | + <pre> |
| 3794 | + div.chapter { break-before: left } |
| 3795 | + div.chapter::first-page { padding-left: 4em } |
| 3796 | +</pre> |
| 3797 | + </div> |
| 3798 | + |
| 3799 | + <div class=example> |
| 3800 | + <pre> |
| 3801 | +div.chapter::page(2) /* second page of the element */ |
| 3802 | +div.chapter::page(2-4) /* select page 2, 3, and 4 */ |
| 3803 | +div.chapter::page(2)::column(2) /* second column, but only if it appears on the second page */ |
| 3804 | +</pre> |
| 3805 | + </div> |
| 3806 | + |
| 3807 | + <h2 id=conformance><span class=secno>17. </span>Conformance</h2> |
3811 | 3808 |
|
3812 | 3809 | <p>TBD |
3813 | 3810 |
|
3814 | | - <h2 id=appendix-a-default-style-sheet><span class=secno>19. </span>Appendix |
| 3811 | + <h2 id=appendix-a-default-style-sheet><span class=secno>18. </span>Appendix |
3815 | 3812 | A: Default style sheet</h2> |
3816 | 3813 |
|
3817 | 3814 | <pre> |
|
0 commit comments