Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
spec:page-view [2012/02/19 18:55] – [Proposal:] bkemperspec:page-view [2012/02/19 20:09] – [Proposal:] bkemper
Line 53: Line 53:
 Presents content of a separate document in paged view. Can be used to build a page viewer with custom UI. Presents content of a separate document in paged view. Can be used to build a page viewer with custom UI.
  
-===In addition (Add-On to Proposal):===+===In addition... (Add-On to Proposal):===
   * **@page** applies to "overflow:paged"   * **@page** applies to "overflow:paged"
  
Line 277: Line 277:
   <div class="story"></div>   <div class="story"></div>
 </div> </div>
 +</code>
 +
 +===[css3-regions] with [css3-page]===
 +[css3-page] already has the concept of different pages having boxes of variable content and style depending on their order, and on certain elements triggering different @page layouts: margin boxes. Margin boxes are created by margin at-rules inside the page context. Margin boxes can accept a subset of CSS properties, just as Regions do. So, in the same way that margin boxes are declared using @margin inside different named or pseudo-classed @page rules, other boxes //within// the "page area" would be created using @slot inside different named or pseudo-classed @page rules. Each @slot could have a 'flow-from' property or 'content' property to give it contents. 'flow-from' makes the @slot into a region. When it there is more content that will fit, it flows to the next region that can contain it, even if that region is on another page. If a page break or 'page' property in another element results in another @page being used that does not contain a region for this flow, then the flow is deferred to a subsequent page that does accept this flow.
 +
 +<code>
 +
 +HTML, body { height:100%; margin:0; }
 +body { overflow: paged; }
 +@page {
 +    @slot(0) { flow-from: article-flow; ... }
 +    @slot(1) { flow-from: sidebar-flow; ... }
 +}
 +@page chapter-start-page {
 +    @slot(0) { flow-from: article-flow;  ... }
 +    @slot(Logo) { content:url(logo.png); position:absolute; top:0; right:0; .. }
 +}
 +
 +article { flow-into: article-flow;  }
 +aside { flow-into: sidebar-flow; }
 +article h1 { page-break-before: always; page: chapter-start-page; }
 </code> </code>
 ====Ideas==== ====Ideas====
 
spec/page-view.txt · Last modified: 2014/12/09 15:48 by 127.0.0.1
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki