csswg/css3-page-template Makefile,NONE,1.1 Overview.html,NONE,1.1 Overview.src.html,1.4,1.5

Update of /sources/public/csswg/css3-page-template
In directory hutz:/tmp/cvs-serv24271

Modified Files:
	Overview.src.html 
Added Files:
	Makefile Overview.html 
Log Message:
Aligned style with CSS regions and exclusions. Added Makefile for spec. production

--- NEW FILE: Overview.html ---
<!DOCTYPE html>

<html lang=en>
 <head profile="http://www.w3.org/2006/03/hcard"><meta
  content="text/html; charset=UTF-8" http-equiv=Content-Type>

  <title>CSS Pagination Templates Module Level 3</title>
  <link href="../default.css" rel=stylesheet type="text/css">

  <style type="text/css">
  
  /* Alternate stylesheet fonts are here because in some browsers (Opera 11.5) */
  /* The fonts are not applied if only loaded from the alternate stylesheet    */
  
  /* License font the following two fonts: fonts/Droid-Serif-fontfacekit/Google Android License.txt */
  @import url(fonts/Droid-Serif-fontfacekit/stylesheet.css);
  @import url(fonts/Droid-Sans-Mono-fontfacekit/stylesheet.css);
  
        body {
            counter-reset: issue;
        }

         a.toggle {
             position: fixed;
             top: 0.5em;
             right: 0.5em;
         	font-size: smaller;
         	color: gray;
         	opacity: 0.2;
         }

         a.toggle:hover {
             opacity: 1;
             color: #46A4E9;
         }
         
         .issue.resolved, .issue.stale, .issue.moved {
             display: none;
         }
         
         
         #region-style-example p, #region-style-example pre {
         	clear: both;
         }

         #region_styling_illustration {
         	margin: 0px auto;
         	width: 70ex;
         }
         
         .big.note {
             font-size: 1.2em;
             line-height: 1.3em;
             color: #2f2f2f;
         }
         
         #mobile-logo {
             display: none;
         }
         
         .issue-marker:before {
             content: "Issue ";
             padding-left: 0.5em;
             font-weight: bold;
             color: #A00;
         }
         
         .issue-marker.wrapper:before {
             content: none;
         }
         
         /* @media screen and (min-width: 68em){    
             
                  .issue-marker {
                      position: absolute;
                      width: 20ex;
                      margin-left: -22ex;
                      text-align: right;
                      margin-bottom: 1em;
                  }
                  
                  div.issue-marker .issue-marker {
                      position: static;
                      width: auto;
                      margin-left: 0;
                      text-align: right;
                  }  
                  
                  div.issue-marker {
                      position: absolute;
                      width: 20ex;
                      margin-left: -22ex;
                  }
         }*/

         @media screen and (max-width: 68em){
                  .issue-marker {
                      margin-bottom: 1em;
                  }
                  
                  .issue-marker a:link {
                      padding-left: 0.5em;
                  }
         } 
         
         #issue-manager form{
             background: #eee;
             padding:10px 1em;
         }
         
         /* hide all non-"updated" issues */
         #issue-manager[data-view_state="updated"] #issue-list>div:not([data-issue_state="updated"]){
             display:none;
         }
            
         /* hide all non-"new" issues */
         #issue-manager[data-view_state="new"] #issue-list>div:not([data-issue_state="new"]){
             display:none;
         }
                  
          #issue-manager .issue-marker{ 
              background: none;
              position: relative;  
              margin:0; 
              width:auto;
              text-align:left; 
              padding:0.5em 0;
          }
          
          #issue-manager .issue-marker a:link{
              padding:0.5em;
          }
          
          #issue-list div[data-issue_state="new"]{
              background:#C1FFC1;
          }  

          #issue-list div[data-issue_state="resolved"]{
              background:white;
              color: #a0a0a0;
          }  

          #issue-list div[data-issue_state="updated"]{
              background:papayawhip;
          }     
          
          #issue-list{
              margin-top:20px;
          }

          #issue-list pre{
              padding:1em;
              margin:0;
          }   
          
          #issue-list>div{
              position:relative;
          }
          
          #issue-list a.issue-markup-trigger{  
              font-size: 0.8em;
              padding: 0.2em 0.5em;
              background: #eee;      
              text-decoration: none;    
              color: #444;
              position: absolute;
              right: 10px;
              top: 10px;  
              z-index: 1;
          }  
          
           #issue-list a.issue-markup-trigger:hover{
               background: #ddd;
               color: #000;
           }                        
          
          #issue-list .showMarkup pre{
              display: block;
          }                           
          
          #issue-list .showMarkup .issue-marker,
          #issue-list pre{
              display: none;
          }
      
         .issue-marker {
              background:#eee;  
              border:1px solid #ddd; 
              font-size: 1em;
              max-height: 12em;
              overflow: hidden;
          }
          
          .issue-marker.wrapper {
              background: none;
              border: none;
          }

         .issue-marker a:link {
              color: #c00;
              background: none;
              font-weight: normal;
              padding-right: 0.5em;
          }
         
         .issue-details {  
              padding:0.5em;
              font-size: 0.8em;
              line-height: 1.5;
          }

         .issue-details p{
              padding:0;
              margin:0; 
          }           

         .issue-details .status{
              background:#333;   
              color:white;
              float:left;    
              padding:0.15em 0.8em;    
              font-size:0.8em;
              margin-right:0.8em;
              text-transform:uppercase;      
          }
              .separate-pre {
      --margin: 5%;
      background-color: rgba(0, 0, 0, 0.08);
    }
  </style>
  <link href="http://www.w3.org/StyleSheets/TR/W3C-ED.css" rel=stylesheet
  type="text/css">
  <link href="../alternate-spec-style.css" id=st rel=stylesheet
  title="alternate spec style" type="text/css">

 <body>
  <div class=head> <!--begin-logo-->
   <p><a href="http://www.w3.org/"><img alt=W3C height=48
    src="http://www.w3.org/Icons/w3c_home" width=72></a> <!--end-logo-->

   <h1>CSS Pagination Templates Module Level 3</h1>

   <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 3 March 2012</h2>

   <dl>
    <dt>This version:
     <!--<dd><a href="http://www.w3.org/TR/2012/ED-css3-page-template-20120303/">http://www.w3.org/TR/2012/ED-css3-page-template-20120303/</a>-->
     

    <dd><a
     href="//dev.w3.org/csswg/css3-page-template/">http://dev.w3.org/csswg/css3-page-template/</a>
     

    <dt>Latest version:
     <!--<dd><a href="http://www.w3.org/TR/css3-page-template/">http://www.w3.org/TR/css3-page-template/</a>-->
     

    <dd><a
     href="//www.w3.org/TR/css3-page-template/">http://www.w3.org/TR/css3-page-template/</a>
     

    <dt>Editor's draft:

    <dd><a
     href="//dev.w3.org/csswg/css3-page-template/">http://dev.w3.org/csswg/css3-page-template/</a>
     <!--
    <dt>Previous version:
    <dd><a href="http://www.w3.org/PreviousVersionURI">
      http://www.w3.org/PreviousVersionURI</a>
  -->
     

    <dt>Editors:

    <dd class=vcard><span class=fn>Alan Stearns</span>, <span class=org>Adobe
     Systems, Inc.</span>, <span class=email>stearns@adobe.com</span>
   </dl>
   <!--begin-copyright-->
   <p class=copyright><a
    href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright"
    rel=license>Copyright</a> &copy; 2012 <a
    href="http://www.w3.org/"><acronym
    title="World Wide Web Consortium">W3C</acronym></a><sup>&reg;</sup> (<a
    href="http://www.csail.mit.edu/"><acronym
    title="Massachusetts Institute of Technology">MIT</acronym></a>, <a
    href="http://www.ercim.eu/"><acronym
    title="European Research Consortium for Informatics and Mathematics">ERCIM</acronym></a>,
    <a href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. W3C <a
    href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>,
    <a
    href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a>
    and <a
    href="http://www.w3.org/Consortium/Legal/copyright-documents">document
    use</a> rules apply.</p>
   <!--end-copyright-->
   <hr title="Separator for header">
  </div>

  <h2 class="no-num no-toc" id=abstract>Abstract</h2>

  <p>The Pagination Templates module describes templates that can be defined
   in CSS to display content in a paginated view. These templates define a
   page containing one or more boxes with content assignments. As content
   overflows additional pages are generated using template selection rules
   until all of the content is displayed.

  <h2 class="no-num no-toc" id=status>Status of this document</h2>

  <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>The following features are at risk: none

  <h2 class="no-num no-toc" id=contents>Table of contents</h2>
  <!--begin-toc-->

  <ul class=toc>
   <li><a href="#intro"><span class=secno>1. </span> Introduction</a>
    <ul class=toc>
     <li><a href="#placement"><span class=secno>1.1. </span> Module
      Interactions</a>
    </ul>

   <li><a href="#templates-and-slots"><span class=secno>2. </span> Pagination
    Templates and Slots</a>

   <li><a href="#conditional-templates"><span class=secno>3. </span> Template
    Selection</a>
    <ul class=toc>
     <li><a href="#ordered-templates"><span class=secno>3.1. </span>
      Selecting Templates by Page Order</a>

     <li><a href="#selection-from-required-flows"><span class=secno>3.2.
      </span> Selecting Templates from Required Flows</a>

     <li><a href="#selection-from-available-content"><span class=secno>3.3.
      </span> Selecting Templates from Available Content</a>
    </ul>

   <li><a href="#cssom"><span class=secno>4. </span> CSS Object Model
    Modifications</a>

   <li><a href="#conformance"><span class=secno>5. </span> Conformance</a>

   <li class=no-num><a href="#acknowledgments">Acknowledgments</a>

   <li class=no-num><a href="#references">References</a>
    <ul class=toc>
     <li class=no-num><a href="#normative-references">Normative
      references</a>

     <li class=no-num><a href="#other-references">Other references</a>
    </ul>

   <li class=no-num><a href="#index">Index</a>
  </ul>
  <!--end-toc-->

  <h2 id=intro><span class=secno>1. </span> Introduction</h2>

  <p><em>This section is not normative.</em>

  <p>This module describes how to define pagination templates in CSS. In CSS
   2.1 content displayed on-screen is assumed to be a single continuous
   canvas. Pagination templates provide a mechanism for a &lsquo;<code
   class=property>paginated</code>&rsquo; experience that applies to
   on-screen presentation as well as printed media. Pagination templates
   describe the layout of pages in which content is displayed as the user
   moves from page to page on screen or prints the document content. When
   content is laid out using pagination templates, pages are generated as
   needed to accommodate all the content.

  <div class=issue-marker>
   <div class=issue-details>The draft as it stands requires pagination to
    present the repeated template layouts. Other methods of repeating
    template layouts to accommodate content might be specified, but the draft
    would need to be reviewed to remove all reliances on paged displays.</div>
  </div>

  <p>Pagination templates consist of anonymous boxes called slots created by
   CSS to contain content. Layouts that use pagination templates mainly
   determine the size of these slots from the template definition instead of
   the intrinsic size of their content. When content does not fit into a
   template slot, additional pages are created with more slots to contain the
   overflow content.

  <p>Multiple pagination templates can be defined for a given document. A
   paginated element can use a single template or select from a set of
   templates each time a new page needs to be generated. Which template is
   used for a given page can be defined by a selector or by choosing a
   template based on available content. Elements can further constrain the
   applicable template set by listing a subset of templates that apply.

  <div class=issue-marker>
   <div class=issue-details>The terms &lsquo;<code
    class=property>template</code>&rsquo; and &lsquo;<code
    class=property>page</code>&rsquo; are overloaded in CSS, but they are the
    words that most clearly describe the concept. Some alternates for the
    main @ rule: template, page-template, view-template, page-master,
    master-template, master. Other suggestions are welcome, but only if they
    are more helpful than onelook.com (which suggested "Captain Submarine").</div>
  </div>

  <h3 id=placement><span class=secno>1.1. </span> Module Interactions</h3>

  <p>This module uses named flows and region chains defined in <a
   href="#CSS3-REGIONS"
   rel=biblioentry>[CSS3-REGIONS]<!--{{CSS3-REGIONS}}--></a>.

  <p>This module uses the overflow-style property from [[CSS3-GCPM]].

  <p>Some examples use positioning from <a href="#CSS3GRID"
   rel=biblioentry>[CSS3GRID]<!--{{CSS3GRID}}--></a>.

  <h2 id=templates-and-slots><span class=secno>2. </span> Pagination
   Templates and Slots</h2>

  <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 &lsquo;<code
   class=property>overflow-style</code>&rsquo; 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.

  <div class=issue-marker>
   <div class=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>

  <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.

  <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.

  <div class=example>
   <p>An @template rule that creates header and footer slots around the
    paginated element's content

   <pre>
    @template {
      @slot header { content: "header string"; }
      @slot { }
      @slot footer { content: "footer string"; }
    }
    </pre>
  </div>

  <p>If any slot in a particular page has overflow content, a new page is
   created with a new set of slots to receive the overflow content. Slots
   with the same named flow assignment form a region chain (within a
   pagination template and/or across pages created from pagination
   templates). When a new page is created a slot that has been assigned
   element content or content from a named flow may not have any content left
   to render. In this case the slot for the exhausted content source is not
   instantiated.

  <div class=issue-marker>
   <div class=issue-details>If there is more than one slot with no
    &lsquo;<code class=property>content</code>&rsquo; or &lsquo;<code
    class=property>flow-from</code>&rsquo; 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>

  <div class=example>
   <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.

   <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.

   <pre class=separate-pre>
    body { overflow-style: paged-x; }</pre>

   <pre class=separate-pre>
    body { overflow-style: paged-x; }
    @template {
      @slot { }
    }</pre>

   <pre class=separate-pre>
    body { overflow-style: paged-x; }
    body > * { flow-into: body-flow; }
    @template {
      @slot { flow-from: body-flow; }
    }</pre>
  </div>

  <div class=issue-marker>
   <div class=issue-details>@slot rules are a first pass at defining
    CSS-created boxes. Other means of creating and addressing pseudo-element
    slots have been discussed on www-style. Another possibility is using HTML
    like WebComponents does to define the boxes. However the boxes are
    created there needs to be a way of assigning content to boxes and
    accessing the template structure through scripting. If pseudo-elements
    are used, then OM for pseudo-elements must be defined. If HTML templates
    are used a declarative method of mapping content to elements must be
    defined.</div>
  </div>

  <p>Pagination templates can use declarations to determine the layout method
   for slots. @slot rules can use sizing and positioning declarations.

  <div class=issue-marker>
   <div class=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>

  <div class=example>
   <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.

   <p> <img alt="side-by-side flows on a page"
    src="images/side-by-side-1.png" width=120> <span
    style="font-size:50px">…</span> <img
    alt="side-by-side flows with the left ending"
    src="images/side-by-side-2.png" width=120> <img alt="only the right flow"
    src="images/only-one-side-3.png" width=120> <span
    style="font-size:50px">…</span>

   <pre>
    body { overflow-style: paged-x; }
    .english { flow-into: english-flow; }
    .french { flow-into: french-flow; }
    @template {
      @slot left {
        flow-from: english-flow;
        width: 40%;
        height: 90%;
        padding: 5%;
        float: left;
      }
      @slot right {
        flow-from: french-flow;
        width: 40%;
        height: 90%;
        padding: 5%
        float: right;
      }
    }
    &lt;body&gt;
      &lt;article class='english'&gt;...content...&lt;/article&gt;
      &lt;article class='french'&gt;...contenu...&lt;/article&gt;
    &lt;/body&gt;
    </pre>
  </div>

  <div class=example>
   <p>The example above could position the slots using grid layout rather
    than floats. In this simple example the longer article will take up the
    entire page once the shorter article is exhausted.

   <p> <img alt="side-by-side flows on a page"
    src="images/side-by-side-1.png" width=120> <span
    style="font-size:50px">…</span> <img
    alt="side-by-side flows with the left ending"
    src="images/side-by-side-2.png" width=120> <img
    alt="the right flow takes up the whole page" src="images/whole-page.png"
    width=120> <span style="font-size:50px">…</span>

   <pre>
    body { overflow-style: paged-x; }
    .english { flow-into: english-flow; }
    .french { flow-into: french-flow; }
    @template {
      display: grid;
      grid-columns: 1fr 1fr;
      @slot left {
        flow-from: english-flow;
        padding: 5%;
        grid-column: 1;
      }
      @slot right {
        flow-from: french-flow;
        padding: 5%
        grid-column: 2;
      }
    }
    &lt;body&gt;
      &lt;article class='english'&gt;...content...&lt;/article&gt;
      &lt;article class='french'&gt;...contenu...&lt;/article&gt;
    &lt;/body&gt;
    </pre>
  </div>

  <h2 id=conditional-templates><span class=secno>3. </span> Template
   Selection</h2>

  <p>Multiple templates can be defined for a single document. An element that
   uses pagination templates either selects a template from the entire
   document set or a subset defined by the &lsquo;<code
   class=property>template-set</code>&rsquo; property. Each page view created
   uses a single template. This template can be chosen from the applicable
   set using a selector, by matching content to display using the
   &lsquo;<code class=property>required-flow</code>&rsquo; and &lsquo;<code
   class=property>available-flow</code>&rsquo; declarations, or just taking
   the first template found.

  <div class=example>
   <p>In this example the divs are paginated using the first template found
    from the set of templates that apply to the div. The first div uses
    template one, the second div uses template two, and the third div uses
    template three.

   <pre>
    div { overflow-style: paged-x; }
    .either-two-or-three { template-set: two three; } 
    .only-three { template-set: three; } 

    @template one { ... }
    @template two { ... }
    @template three { ... }

    &lt;div class='any-template'&gt; ... &lt;/div&gt;
    &lt;div class='either-two-or-three'&gt; ... &lt;/div&gt;
    &lt;div class='only-three'&gt; ... &lt;/div&gt;
    </pre>
  </div>

  <div class="issue-marker wrapper">
   <div class=issue-marker>
    <div class=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>

   <div class=issue-marker>
    <div class=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>
  </div>

  <h3 id=ordered-templates><span class=secno>3.1. </span> Selecting Templates
   by Page Order</h3>

  <p>Selectors such as :first can be used on a pagination template to define
   a separate template for pages that match the selector.

  <div class=issue-marker>
   <div class=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>

  <div class=issue-marker>
   <div class=issue-details>Describe how @template rules with selectors
    cascade.</div>
  </div>

  <div class=example>
   <p>Any of the side-by-side two-article examples from the previous section
    could have an @template :first {} rule that defined a fancy layout for
    the first page.

   <pre>
    @template :first {
      @slot left {
        //fancy styling
        flow-from: article1;
      }
      @slot right {
        //fancy styling
        flow-from: article2;
      }
    }
    </pre>
  </div>

  <div class="issue-marker wrapper">
   <div class=issue-marker>
    <div class=issue-details>define "fancy."</div>
   </div>

   <div class=issue-marker>
    <div class=issue-details>Depending on how template selection is defined,
     there will likely be scenarios where degenerate template sets can either
     fail to display all of the content or result in an infinite loop of page
     generation. This first draft falls into the latter category (make a
     :first template with a slot that overflows, but fail to include an
     assignment for that slot's content in all other templates), so this will
     need to be addressed with more selection rules.</div>
   </div>
  </div>

  <h3 id=selection-from-required-flows><span class=secno>3.2. </span>
   Selecting Templates from Required Flows</h3>

  <p>The &lsquo;<code class=property>required-flow</code>&rsquo; property can
   be used in a pagination template to list named flows that must still have
   content in order for the template to be used. If more than one template
   has a &lsquo;<code class=property>required-flow</code>&rsquo; value that
   matches the remaining flow content, the first template that matches will
   be used.

  <div class=example>
   <p>"Continued on" layout.

   <p>These pagination templates will display an inital page with the
    beginning of both the &lsquo;<code
    class=property>lead-story</code>&rsquo; flow and a &lsquo;<code
    class=property>related-article</code>&rsquo; flow. If the lead story has
    more content than will fit on that first page, the next page(s) will show
    only content from that lead story. When the content from the lead story
    is exhausted, then pages will follow with content from the related
    article.

   <p> <img alt="side-by-side flows on a page"
    src="images/side-by-side-1.png" width=120> <img
    alt="columns continuing just the first flow"
    src="images/first-article-columns.png" width=120> <span
    style="font-size:50px">…</span> <img
    alt="columns ending the first flow" src="images/first-article-end.png"
    width=120> <img alt="columns continuing the second flow"
    src="images/second-article-columns.png" width=120> <span
    style="font-size:50px">…</span>

   <pre>
    body { overflow-style: paged-x; }
    .lead-story { flow-into: first-flow; }
    .related-article { flow-into: second-flow; }
    @template :first {
      @slot left {
        flow-from: first-flow;
        width: 40%;
        height: 90%;
        padding: 5%;
        float: left;
      }
      @slot right {
        flow-from: second-flow;
        width: 40%;
        height: 90%;
        padding: 5%
        float: left;
      }
    }
    @template {
      required-flow: first-flow;
      @slot first {
        flow-from: first-flow;
        column-width: 20em;
      }
    }
    @template {
      required-flow: second-flow;
      @slot second {
        flow-from: second-flow;
        column-width: 20em;
      }
    }
    &lt;body&gt;
      &lt;article class='lead-story'&gt;...content...&lt;/article&gt;
      &lt;article class='related-article'&gt;...content...&lt;/article&gt;
    &lt;/body&gt;    
    </pre>
  </div>

  <h3 id=selection-from-available-content><span class=secno>3.3. </span>
   Selecting Templates from Available Content</h3>

  <p>Pagination templates can be selected based on the order of content in
   the original markup. Content may be split out into one or more named
   flows, but the original order can be discovered in the markup.

  <p>Pagination templates have a &lsquo;<code
   class=property>primary</code>&rsquo; content flow. The primary content for
   a pagination template is usually the content of the paginated element. If
   no slot displays the element contents, then the primary content of the
   pagination template is the first named flow in its required-flow
   declaration.

  <p>When selecting the pagination template for the next page, the primary
   content flow in the original markup can be scanned to determine whether
   any out-of-flow content in named flows was originally related to the next
   page of primary flow. If this is the case, then those named flows have
   &lsquo;<code class=property>available</code>&rsquo; content for the
   purpose of selecting an appropriate template that can display this
   content.

  <p>Pagination templates can have an &lsquo;<code
   class=property>available-flow</code>&rsquo; declaration listing the named
   flows that must have available content for the template to be selected. If
   a template with an &lsquo;<code
   class=property>available-flow</code>&rsquo; declaration is chosen, only
   the available content in those flows is displayed in the slots associated
   with those flows.

  <div class=example>
   <p>Consider an article element that contains images scattered throughout.
    Assign the images to a flow named &lsquo;<code
    class=property>images</code>&rsquo; and the rest of the article to a flow
    named &lsquo;<code class=property>text</code>&rsquo;. Then define two
    pagination templates - one that has slots only for the &lsquo;<code
    class=property>text</code>&rsquo; flow, and another that has slots for
    both the &lsquo;<code class=property>text</code>&rsquo; and &lsquo;<code
    class=property>images</code>&rsquo; flows. Both templates require the
    &lsquo;<code class=property>text</code>&rsquo; flow, but the second
    template also requires the &lsquo;<code
    class=property>images</code>&rsquo; flow and has an &lsquo;<code
    class=property>available-flow</code>&rsquo; declaration listing the
    &lsquo;<code class=property>images</code>&rsquo; flow. Each time a page
    is laid out, the original article element is scanned to see whether an
    image element is in the next page's worth of content (determined by some
    heuristic, not layout). If so, then that content from the &lsquo;<code
    class=property>images</code>&rsquo; flow is available for the purpose of
    selecting a template.
  </div>

  <div class=issue-marker>
   <div class=issue-details>Expand this.</div>
  </div>

  <div class=example>
   <p>Assume you have an article that contains both pull quotes and images.
    If only images <em>or</em> pull quotes would occur on a page, position
    those elements in the center right of the template. But if both images
    <em>and</em> pull quotes would appear, position the images in the top
    left and the pull quotes in the bottom right.

   <div class=issue-marker>
    <div class=issue-details>code this example</div>
   </div>
  </div>

  <h2 id=cssom><span class=secno>4. </span> CSS Object Model Modifications</h2>

  <div class=issue-marker>
   <div class=issue-details>There should be extensive OM defined to access
    pages and slots. What page is being displayed should be available. Pages
    and slots should accept event handlers. Anchors should navigate to the
    appropriate page (as should search). What content fits in each slot and
    page should be determinable. Lots to fill out here.</div>
  </div>

  <h2 id=conformance><span class=secno>5. </span> Conformance</h2>

  <h2 class=no-num id=acknowledgments>Acknowledgments</h2>

  <p>The editor is grateful to the CSS working group for their feedback and
   help with the genesis of this specification.

  <p>In addition, the editor would like to thank the following individuals
   for their contributions, either during the conception of CSS Pagination
   Templates or during its development and specification review process:

  <ul>
   <li>Rossen Atanassov

   <li>Tab Atkins

   <li>Alexandru Chiculita

   <li>Sylvain Galineau

   <li>Vincent Hardy

   <li>David Hyatt

   <li>Brad Kemper

   <li>Håkon Wium Lie

   <li>Alex Mogilevsky

   <li>Christoph Päper

   <li>Peter Sorotokin

   <li>Stephen Zilles
  </ul>

  <h2 class=no-num id=references>References</h2>

  <h3 class=no-num id=normative-references>Normative references</h3>
  <!--begin-normative-->
  <!-- Sorted by label -->

  <dl class=bibliography>
   <dt style="display: none"><!-- keeps the doc valid if the DL is empty -->
    <!---->
  </dl>
  <!--end-normative-->

  <h3 class=no-num id=other-references>Other references</h3>
  <!--begin-informative-->
  <!-- Sorted by label -->

  <dl class=bibliography>
   <dt style="display: none"><!-- keeps the doc valid if the DL is empty -->
    <!---->

   <dt id=CSS3-REGIONS>[CSS3-REGIONS]

   <dd>Vincent Hardy; Alex Mogilevsky. <a
    href="http://www.w3.org/TR/2011/WD-css3-regions-20111129/"><cite>CSS
    Regions Module Level 3.</cite></a> 29 November 2011. W3C Working Draft.
    (Work in progress.) URL: <a
    href="http://www.w3.org/TR/2011/WD-css3-regions-20111129/">http://www.w3.org/TR/2011/WD-css3-regions-20111129/</a>
    </dd>
   <!---->

   <dt id=CSS3GRID>[CSS3GRID]

   <dd>Alex Mogilevsky; Markus Mielke. <a
    href="http://www.w3.org/TR/2007/WD-css3-grid-20070905"><cite>CSS Grid
    Positioning Module Level&#160;3.</cite></a> 5 September 2007. W3C Working
    Draft. (Work in progress.) URL: <a
    href="http://www.w3.org/TR/2007/WD-css3-grid-20070905">http://www.w3.org/TR/2007/WD-css3-grid-20070905</a>
    </dd>
   <!---->
  </dl>
  <!--end-informative-->

  <h2 class=no-num id=index>Index</h2>
  <!--begin-index-->

  <ul class=indexlist></ul>
  <!--end-index-->
  <!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-declaration:"~/SGML/HTML4.decl"
sgml-default-doctype-name:"html"
sgml-minimize-attributes:t
sgml-nofill-elements:("pre" "style" "br")
sgml-live-element-indicator:t
sgml-omittag:nil
sgml-shorttag:nil
sgml-namecase-general:t
sgml-general-insert-case:lower
sgml-always-quote-attributes:t
sgml-indent-step:nil
sgml-indent-data:t
sgml-parent-document:nil
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
-->

--- NEW FILE: Makefile ---
# $Id: Makefile,v 1.1 2012/03/03 02:24:49 vhardy Exp $
#
#   http://dev.w3.org/buildtools/css3-module-postprocessor/Makefile
#
# This is a makefile for generating output using the CSS3 module
# postprocessor. Details about that are here:
#
#   http://www.w3.org/Style/Group/css3-src/bin/postprocess
#
# To use this makefile, you need to have the "make" and "curl"
# programs installed. If you are running a Windows/MS-DOS system,
# you can download the "make" and "curl" programs from here:
#
#   http://gnuwin32.sourceforge.net/downlinks/make.php
#   http://curl.haxx.se/dlwiz/?type=bin&os=Win32&flav=-&ver=2000/XP
#
# You also need to install either a .curlrc (*NIX/*BSD) or _curlrc
# (MS-DOS ) file in your HOME directory, with at minimum the
# following contents:
#
#   user = foo:bar
#
# ...where "foo" and "bar" are your W3C username and password.

SOURCEFILE=Overview.src.html
OUTPUTFILE=Overview.html
PROCESSCGI=http://cgi.w3.org/member-bin/process.cgi
CURL=curl
CURLFLAGS=

# if you want to set a publication date other than today's date,
# invoke make like this: "make PUBDATE=2008-03-19"
PUBMSG=
PUBDATE=
USER=

W3C_CSS_DIR=~/work/W3C/cvs/dev.w3.org/csswg/css3-page-template

all: $(OUTPUTFILE) 

$(OUTPUTFILE): $(SOURCEFILE)
ifeq (,$(PUBDATE))
	$(CURL) $(CURLFLAGS) --user $(USER) -F file="@$<" -o "$@" -F group=CSS -F output=html -F method=file $(PROCESSCGI)
else
	$(CURL) $(CURLFLAGS) --user $(USER) -F file="@$<" -o "$@" -F group=CSS -F output=html -F method=file $(PROCESSCGI) -F date=$(PUBDATE)
endif


	


Index: Overview.src.html
===================================================================
RCS file: /sources/public/csswg/css3-page-template/Overview.src.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Overview.src.html	2 Mar 2012 22:52:46 -0000	1.4
+++ Overview.src.html	3 Mar 2012 02:24:49 -0000	1.5
@@ -4,15 +4,235 @@
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <title>CSS Pagination Templates Module Level 3</title>
   <link rel="stylesheet" type="text/css" href="../default.css">
-  <link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-ED.css">
-  <link id="st" href="../alternate-spec-style.css" rel="stylesheet" 
-        type="text/css" title="alternate spec style">
-  <style type="text/css">
-    .separate-pre {
+
+
+
+       <style type="text/css">
+  
+  /* Alternate stylesheet fonts are here because in some browsers (Opera 11.5) */
+  /* The fonts are not applied if only loaded from the alternate stylesheet    */
+  
+  /* License font the following two fonts: fonts/Droid-Serif-fontfacekit/Google Android License.txt */
+  @import url(fonts/Droid-Serif-fontfacekit/stylesheet.css);
+  @import url(fonts/Droid-Sans-Mono-fontfacekit/stylesheet.css);
+  
+        body {
+            counter-reset: issue;
+        }
+
+         a.toggle {
+             position: fixed;
+             top: 0.5em;
+             right: 0.5em;
+         	font-size: smaller;
+         	color: gray;
+         	opacity: 0.2;
+         }
+
+         a.toggle:hover {
+             opacity: 1;
+             color: #46A4E9;
+         }
+         
+         .issue.resolved, .issue.stale, .issue.moved {
+             display: none;
+         }
+         
+         
+         #region-style-example p, #region-style-example pre {
+         	clear: both;
+         }
+
+         #region_styling_illustration {
+         	margin: 0px auto;
+         	width: 70ex;
+         }
+         
+         .big.note {
+             font-size: 1.2em;
+             line-height: 1.3em;
+             color: #2f2f2f;
+         }
+         
+         #mobile-logo {
+             display: none;
+         }
+         
+         .issue-marker:before {
+             content: "Issue ";
+             padding-left: 0.5em;
+             font-weight: bold;
+             color: #A00;
+         }
+         
+         .issue-marker.wrapper:before {
+             content: none;
+         }
+         
+         /* @media screen and (min-width: 68em){    
+             
+                  .issue-marker {
+                      position: absolute;
+                      width: 20ex;
+                      margin-left: -22ex;
+                      text-align: right;
+                      margin-bottom: 1em;
+                  }
+                  
+                  div.issue-marker .issue-marker {
+                      position: static;
+                      width: auto;
+                      margin-left: 0;
+                      text-align: right;
+                  }  
+                  
+                  div.issue-marker {
+                      position: absolute;
+                      width: 20ex;
+                      margin-left: -22ex;
+                  }
+         }*/
+
+         @media screen and (max-width: 68em){
+                  .issue-marker {
+                      margin-bottom: 1em;
+                  }
+                  
+                  .issue-marker a:link {
+                      padding-left: 0.5em;
+                  }
+         } 
+         
+         #issue-manager form{
+             background: #eee;
+             padding:10px 1em;
+         }
+         
+         /* hide all non-"updated" issues */
+         #issue-manager[data-view_state="updated"] #issue-list>div:not([data-issue_state="updated"]){
+             display:none;
+         }
+            
+         /* hide all non-"new" issues */
+         #issue-manager[data-view_state="new"] #issue-list>div:not([data-issue_state="new"]){
+             display:none;
+         }
+                  
+          #issue-manager .issue-marker{ 
+              background: none;
+              position: relative;  
+              margin:0; 
+              width:auto;
+              text-align:left; 
+              padding:0.5em 0;
+          }
+          
+          #issue-manager .issue-marker a:link{
+              padding:0.5em;
+          }
+          
+          #issue-list div[data-issue_state="new"]{
+              background:#C1FFC1;
+          }  
+
+          #issue-list div[data-issue_state="resolved"]{
+              background:white;
+              color: #a0a0a0;
+          }  
+
+          #issue-list div[data-issue_state="updated"]{
+              background:papayawhip;
+          }     
+          
+          #issue-list{
+              margin-top:20px;
+          }
+
+          #issue-list pre{
+              padding:1em;
+              margin:0;
+          }   
+          
+          #issue-list>div{
+              position:relative;
+          }
+          
+          #issue-list a.issue-markup-trigger{  
+              font-size: 0.8em;
+              padding: 0.2em 0.5em;
+              background: #eee;      
+              text-decoration: none;    
+              color: #444;
+              position: absolute;
+              right: 10px;
+              top: 10px;  
+              z-index: 1;
+          }  
+          
+           #issue-list a.issue-markup-trigger:hover{
+               background: #ddd;
+               color: #000;
+           }                        
+          
+          #issue-list .showMarkup pre{
+              display: block;
+          }                           
+          
+          #issue-list .showMarkup .issue-marker,
+          #issue-list pre{
+              display: none;
+          }
+      
+         .issue-marker {
+              background:#eee;  
+              border:1px solid #ddd; 
+              font-size: 1em;
+              max-height: 12em;
+              overflow: hidden;
+          }
+          
+          .issue-marker.wrapper {
+              background: none;
+              border: none;
+          }
+
+         .issue-marker a:link {
+              color: #c00;
+              background: none;
+              font-weight: normal;
+              padding-right: 0.5em;
+          }
+         
+         .issue-details {  
+              padding:0.5em;
+              font-size: 0.8em;
+              line-height: 1.5;
+          }
+
+         .issue-details p{
+              padding:0;
+              margin:0; 
+          }           
+
+         .issue-details .status{
+              background:#333;   
+              color:white;
+              float:left;    
+              padding:0.15em 0.8em;    
+              font-size:0.8em;
+              margin-right:0.8em;
+              text-transform:uppercase;      
+          }
+              .separate-pre {
       --margin: 5%;
       background-color: rgba(0, 0, 0, 0.08);
     }
   </style>
+  
+  
+  <link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-ED.css">
+  <link id="st" href="../alternate-spec-style.css" rel="stylesheet" 
+        type="text/css" title="alternate spec style">
 </head>
 
 <body><div class="head">
@@ -42,7 +262,6 @@
     <dd class="vcard"><span class="fn">Alan Stearns</span>,
       <span class="org">Adobe Systems, Inc.</span>,
       <span class="email">stearns@adobe.com</span>
-    <dd class="vcard"><span class="fn">...</span>
   </dl>
 
 <!--copyright-->
@@ -71,13 +290,13 @@
 
   <p>This module describes how to define pagination templates in CSS. In CSS 2.1 content displayed on-screen is assumed to be a single continuous canvas. Pagination templates provide a mechanism for a 'paginated' experience that applies to on-screen presentation as well as printed media. Pagination templates describe the layout of pages in which content is displayed as the user moves from page to page on screen or prints the document content. When content is laid out using pagination templates, pages are generated as needed to accommodate all the content.
 
-  <p class="issue">The draft as it stands requires pagination to present the repeated template layouts. Other methods of repeating template layouts to accommodate content might be specified, but the draft would need to be reviewed to remove all reliances on paged displays.
+  <div class="issue-marker"><div class="issue-details">The draft as it stands requires pagination to present the repeated template layouts. Other methods of repeating template layouts to accommodate content might be specified, but the draft would need to be reviewed to remove all reliances on paged displays.</div></div>
 
   <p>Pagination templates consist of anonymous boxes called slots created by CSS to contain content. Layouts that use pagination templates mainly determine the size of these slots from the template definition instead of the intrinsic size of their content. When content does not fit into a template slot, additional pages are created with more slots to contain the overflow content.
 
   <p>Multiple pagination templates can be defined for a given document. A paginated element can use a single template or select from a set of templates each time a new page needs to be generated. Which template is used for a given page can be defined by a selector or by choosing a template based on available content. Elements can further constrain the applicable template set by listing a subset of templates that apply.
 
-  <p class="issue">The terms 'template' and 'page' are overloaded in CSS, but they are the words that most clearly describe the concept. Some alternates for the main @ rule: template, page-template, view-template, page-master, master-template, master. Other suggestions are welcome, but only if they are more helpful than onelook.com (which suggested "Captain Submarine").
+  <div class="issue-marker"><div class="issue-details">The terms 'template' and 'page' are overloaded in CSS, but they are the words that most clearly describe the concept. Some alternates for the main @ rule: template, page-template, view-template, page-master, master-template, master. Other suggestions are welcome, but only if they are more helpful than onelook.com (which suggested "Captain Submarine").</div></div>
 
 <h3 id="placement">
 Module Interactions</h3>
@@ -91,7 +310,7 @@
 
   <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.
 
-  <p class="issue">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 class="issue-marker"><div class="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>
 
   <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.
 
@@ -110,7 +329,7 @@
 
   <p>If any slot in a particular page has overflow content, a new page is created with a new set of slots to receive the overflow content. Slots with the same named flow assignment form a region chain (within a pagination template and/or across pages created from pagination templates). When a new page is created a slot that has been assigned element content or content from a named flow may not have any content left to render. In this case the slot for the exhausted content source is not instantiated.
 
-  <p class="issue">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 class="issue-marker"><div class="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>
 
   <div class='example'>
     <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.
@@ -132,11 +351,11 @@
     }</pre>
   </div>
 
-  <p class="issue">@slot rules are a first pass at defining CSS-created boxes. Other means of creating and addressing pseudo-element slots have been discussed on www-style. Another possibility is using HTML like  WebComponents does to define the boxes. However the boxes are created there needs to be a way of assigning content to boxes and accessing the template structure through scripting. If pseudo-elements are used, then OM for pseudo-elements must be defined. If HTML templates are used a declarative method of mapping content to elements must be defined.
+  <div class="issue-marker"><div class="issue-details">@slot rules are a first pass at defining CSS-created boxes. Other means of creating and addressing pseudo-element slots have been discussed on www-style. Another possibility is using HTML like  WebComponents does to define the boxes. However the boxes are created there needs to be a way of assigning content to boxes and accessing the template structure through scripting. If pseudo-elements are used, then OM for pseudo-elements must be defined. If HTML templates are used a declarative method of mapping content to elements must be defined.</div></div>
 
   <p>Pagination templates can use declarations to determine the layout method for slots. @slot rules can use sizing and positioning declarations.
 
-  <p class="issue">Is there a need to create more structure, nesting slots within slots? If so, then slots can also have layout method declarations?
+  <div class="issue-marker"><div class="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>
 
   <div class='example'>
     <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.
@@ -229,21 +448,22 @@
     </pre>
   </div>
 
-  <p class="issue">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.
-  <p class="issue">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 class="issue-marker wrapper">
+  <div class="issue-marker"><div class="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>
+  <div class="issue-marker"><div class="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>
+  </div>
+  
 <h3 id='ordered-templates'>
 Selecting Templates by Page Order</h3>
 
   <p>Selectors such as :first can be used on a pagination template to define a separate template for pages that match the selector.
 
-  <p class="issue">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 class="issue-marker"><div class="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>
 
-  <p class="issue">Describe how @template rules with selectors cascade.
+  <div class="issue-marker"><div class="issue-details">Describe how @template rules with selectors cascade.</div></div>
 
   <div class='example'>
     <p>Any of the side-by-side two-article examples from the previous section could have an @template :first {} rule that defined a fancy layout for the first page.
-    <p class="issue">define "fancy."
     <pre>
     @template :first {
       @slot left {
@@ -258,8 +478,13 @@
     </pre>
   </div>
 
-  <p class="issue">Depending on how template selection is defined, there will likely be scenarios where degenerate template sets can either fail to display all of the content or result in an infinite loop of page generation. This first draft falls into the latter category (make a :first template with a slot that overflows, but fail to include an assignment for that slot's content in all other templates), so this will need to be addressed with more selection rules.
+  <div class="issue-marker wrapper">
+      
+  <div class="issue-marker"><div class="issue-details">define "fancy."</div></div>
 
+  <div class="issue-marker"><div class="issue-details">Depending on how template selection is defined, there will likely be scenarios where degenerate template sets can either fail to display all of the content or result in an infinite loop of page generation. This first draft falls into the latter category (make a :first template with a slot that overflows, but fail to include an assignment for that slot's content in all other templates), so this will need to be addressed with more selection rules.</div></div>
+  </div>
+  
 <h3 id='selection-from-required-flows'>
 Selecting Templates from Required Flows</h3>
 
@@ -331,17 +556,17 @@
     <p>Consider an article element that contains images scattered throughout. Assign the images to a flow named 'images' and the rest of the article to a flow named 'text'. Then define two pagination templates - one that has slots only for the 'text' flow, and another that has slots for both the 'text' and 'images' flows. Both templates require the 'text' flow, but the second template also requires the 'images' flow and has an 'available-flow' declaration listing the 'images' flow. Each time a page is laid out, the original article element is scanned to see whether an image element is in the next page's worth of content (determined by some heuristic, not layout). If so, then that content from the 'images' flow is available for the purpose of selecting a template.
   </div>  
 
-  <p class="issue">Expand this.
+  <div class="issue-marker"><div class="issue-details">Expand this.</div></div>
 
   <div class='example'>
     <p>Assume you have an article that contains both pull quotes and images. If only images <em>or</em> pull quotes would occur on a page, position those elements in the center right of the template. But if both images <em>and</em> pull quotes would appear, position the images in the top left and the pull quotes in the bottom right.
-    <p class="issue">code this example
+    <div class="issue-marker"><div class="issue-details">code this example</div></div>
   </div>
 
 <h2 id="cssom">
 CSS Object Model Modifications</h2>
 
-  <p class='issue'>There should be extensive OM defined to access pages and slots. What page is being displayed should be available. Pages and slots should accept event handlers. Anchors should navigate to the appropriate page (as should search). What content fits in each slot and page should be determinable. Lots to fill out here.
+  <div class="issue-marker"><div class="issue-details">There should be extensive OM defined to access pages and slots. What page is being displayed should be available. Pages and slots should accept event handlers. Anchors should navigate to the appropriate page (as should search). What content fits in each slot and page should be determinable. Lots to fill out here.</div></div>
 
 <h2 id="conformance">
 Conformance</h2>

Received on Saturday, 3 March 2012 02:24:56 UTC