You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h2class="no-num no-toc" id="status">Status of this document</h2>
277
276
278
-
<p><strong>This document is only an Editor's Draft. It has not yet been adopted by the Working Group, and should not be considered to be part of CSS.</strong></p>
277
+
<!--begin-status-->
278
+
<p><strong>This document is only an Editor's Draft. It is provided for discussion only and may change at any moment. It has not yet been adopted by the Working Group, and should not be considered to be part of CSS.</strong>
279
279
280
-
<p>The following features are at risk: none
280
+
<p>The archived public mailing list www-style@w3.org is preferred for discussion of this specification. When sending e-mail, please put the text "css3-page-template" in the subject, preferably like this: "[css3-page-template] …summary of comment…"
281
+
<!--end-status-->
282
+
<p>The following features are at risk: none
281
283
282
284
<h2class="no-num no-toc" id="contents">Table of contents</h2>
283
285
@@ -302,19 +304,19 @@ <h3 id="placement">
302
304
Module Interactions</h3>
303
305
304
306
<p>This module uses named flows and region chains defined in [[CSS3-REGIONS]].
305
-
<p>This module uses the overflow-style property from [[CSS3-GCPM]].
307
+
<p>This module uses the overflow-style property from [[CSS3GCPM]].
306
308
<p>Some examples use positioning from [[CSS3GRID]].
307
309
308
310
<h2id="templates-and-slots">
309
311
Pagination Templates and Slots</h2>
310
312
311
-
<p>An @template rule defines a pagination template. Pagination templates contain one or more slots to display content. An element can use pagination templates if its 'overflow-style' property is set to any of the paged-* values defined in css3-gcpm. If a document defines no pagination templates, then there is an implicit paginated template with a single slot containing the paginated element's contents.
313
+
<p>An @template rule defines a pagination template. Pagination templates contain one or more slots to display content. An element can use pagination templates if its 'overflow-style' property is set to any of the paged-* values defined in css3-gcpm. If a document defines no pagination templates, then there is an implicit pagination template with a single slot containing the paginated element's contents.
312
314
313
315
<divclass="issue-marker"><divclass="issue-details">Do pagination templates get their size (and other characteristics) from the element with the overflow-style property, or does this have be set in the @template rule? Can templates use a default 100%/100% size based on the element's box?</div></div>
314
316
315
-
<p>A slot is an anonymous box in a paginated template where content can be placed. In an @template rule @slot rules create slots. The order of @slot rules determines the order of the boxes in the paginated template. Each @slot rule can take an optional name.
317
+
<p>A slot is an anonymous box in a pagination template where content can be placed. In an @template rule @slot rules create slots. The order of @slot rules determines the order of the boxes in the pagination template. Each @slot rule can take an optional name.
316
318
317
-
<p>Slots default to displaying the content of the paginated element. Slots can instead contain generated content assigned from the content property. Slots can also be assigned content from named flows.
319
+
<p>Slots default to displaying the content of the paginated element. Slots can instead contain generated content assigned with the content property. Slots can also be assigned content from named flows.
318
320
319
321
<divclass='example'>
320
322
<p>An @template rule that creates header and footer slots around the paginated element's content
@@ -332,9 +334,9 @@ <h2 id="templates-and-slots">
332
334
<divclass="issue-marker"><divclass="issue-details">If there is more than one slot with no 'content' or 'flow-from' assignment, does the element's content use all of these slots like a region chain, or is only the last unassigned slot used for content?</div></div>
333
335
334
336
<divclass='example'>
335
-
<p>The simplest example takes all of the content in the document and flows it into a single paginated template with a single slot. This template will display a viewport's worth of content at a time, and will create a new slot on a new page each time content overflows.
337
+
<p>The simplest example takes all of the content in the document and flows it into a single pagination template with a single slot. This template will display a viewport's worth of content at a time, and will create a new slot on a new page each time content overflows.
336
338
337
-
<p>The three examples below are equivalent, but merely illustrate how content from the element can be assigned to paginated template slots. Actual use of templates would either define more slots or assign content differently than the default.
339
+
<p>The three examples below are equivalent, but merely illustrate how content from the element can be assigned to pagination template slots. Actual use of templates would either define more slots or assign content differently than the default.
338
340
339
341
<preclass='separate-pre'>
340
342
body { overflow-style: paged-x; }</pre>
@@ -358,7 +360,7 @@ <h2 id="templates-and-slots">
358
360
<divclass="issue-marker"><divclass="issue-details">Is there a need to create more structure, nesting slots within slots? If so, then slots can also have layout method declarations?</div></div>
359
361
360
362
<divclass='example'>
361
-
<p>A paginated template could contain two side-by-side slots that paginate two separate articles. Side-by-side translations are often laid out this way. This example fills the left side of the paged view with content from an English article and the right side with content from a French article. New pages and slots are created until the content from both articles is exhausted. If one article is longer than the other then in this simple example template the longer article will continue taking up just its half of the page.
363
+
<p>A pagination template could contain two side-by-side slots that paginate two separate articles. Side-by-side translations are often laid out this way. This example fills the left side of the paged view with content from an English article and the right side with content from a French article. New pages and slots are created until the content from both articles is exhausted. If one article is longer than the other then in this simple example template the longer article will continue taking up just its half of the page.
362
364
<p>
363
365
<imgsrc="images/side-by-side-1.png" width="120" alt="side-by-side flows on a page">
<divclass="issue-marker"><divclass="issue-details">Instead of specifying a template-set, should there be a way of scoping @template rules to an element? The reason to put them on the document is to re-use pagination templates with multiple elements.</div></div>
453
-
<divclass="issue-marker"><divclass="issue-details">One way of promoting re-use of paginated templates would be to parameterize the named flow idents. Instead of using named flow idents directly, @slot rules could use a parameter and a paginated element using the template would pass in the particular named flow ident meant for that parameter.</div></div>
455
+
<divclass="issue-marker"><divclass="issue-details">One way of promoting re-use of pagination templates would be to parameterize the named flow idents. Instead of using named flow idents directly, @slot rules could use a parameter and a paginated element using the template would pass in the particular named flow ident meant for that parameter.</div></div>
454
456
</div>
455
457
456
458
<h3id='ordered-templates'>
457
459
Selecting Templates by Page Order</h3>
458
460
459
461
<p>Selectors such as :first can be used on a pagination template to define a separate template for pages that match the selector.
460
462
461
-
<divclass="issue-marker"><divclass="issue-details">Should we use :left and :right and allow viewing more than one page at a time in a viewport? Should we have :nth(x) selectors?</div></div>
463
+
<divclass="issue-marker"><divclass="issue-details">Should :left and :right be allowed with a way of displaying more than one page at a time in a viewport? Should :nth(x) selectors be allowed?</div></div>
462
464
463
465
<divclass="issue-marker"><divclass="issue-details">Describe how @template rules with selectors cascade.</div></div>
0 commit comments