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
<pre class=metadata>Title: Proposals for the future of CSS Paged MediaShortname: css-pageLevel: 4Group: csswgStatus: UDWork Status: exploringED: https://drafts.csswg.org/css-page-4/Editor: Daniel Glazman, Disruptive InnovationsAbstract: A list of issues with the current CSS page model, and possibly directions to explore for fixing it.</pre><h2 id=css-page-model>The CSS 3 Page Model</h2>This section is informative.The current Page Model,as described in <cite>CSS3 Module: Paged Media </cite>[[!CSS3PAGE]],is the following one:the printable area of a page,the <dfn id="page-box">page box</dfn>,is made of one page box itself divided in four areas:<figure> <img alt="CSS 3 Paged Media's page model" src="images/PageBox.png"> <figcaption>The CSS3 Page Model</figcaption></figure>1. the <dfn id="page-margin">page margin</dfn>; that area is itself divided into 16 <dfn id="page-margin-boxes">page-margin boxes</dfn> (@top-left-corner, @top-left, @top-center, etc. ) <figure> <img alt="CSS 3 page-margin boxes" src="images/RightMarginBoxes.png"> <figcaption>The 16 page-margin boxes<br> (with highlight of 3 of them)<br> </figcaption> </figure>2. the <dfn id="page-border">page border</dfn>3. the <dfn id="page-padding">page padding</dfn>4. and finally the <dfn id="page-area">page area</dfn> containing the boxes generated by the flow of the main contents of the document.It's is possible to flow content,for instance page headers and footers or footnotes,into a page-margin boxusing features introduced by the<cite>CSS Generated Content for Paged Media Module </cite>[[!CSS3GCPM]].It is also possible to define multiple page templates for a single documentusing the <span class="css">@page</span> at-rulethat allows to select thefirst page, left pages, right pages or named pages of a paginated flow.If this page model allowed the publishing industry to adopt HTML and CSS as pivot formats,it starts showing its limits for the following reasons:* the 16 page-margin boxes are an extension of the print features offered by desktop browsers. Desktop browsers usually offer control over 6 page-margin boxes only. Only one desktop browser claims implementation of the page model described above in the fourteen last years. The other desktop browsers' control over the 6 page-margin boxes is then not achieved through the cascade of CSS UA stylesheets.* no editing environment available on the market and in particular Wysiwyg text editor (for instance like Microsoft Word) implements such a box model.* it's not possible with the current model to position headers and footers (for instance the HTML5 header and footer elements) arbitrarily in the page area.* the ''@page'' at-rule currently allows nested at-rules only for the definition of page-margin boxes. Similarly, the set of CSS properties applicable to a page box is limited and it is impossible in this model to use <cite>CSS Regions Module Level 3</cite> [[!CSS3-REGIONS]] to flow content into a given predefined area of a page, exclude an area from the page using <cite>CSS 3 Exclusions and Shapes Module</cite> [[!CSS3-EXCLUSIONS]], lay out the page area into a grid using <cite>CSS Grid Layout</cite> [[!CSS3-GRID-LAYOUT]] or using <css>''@slot</css> rules that were discussed multiple times by the CSS Working Group in the recent past. The successful electronic book editing environment of Apple Inc., iBooks Author, already allows ''@page'' rules to specify arbitrary slots, arbitrary exclusions and shapes, and extends the list of applicable properties; most of its advanced layout capabilities are based on these features.* the ''@page'' rule of <cite>CSS 2.1</cite> [[!CSS21]] is intended for use on print media, not dynamic media. The spread of complex HTML-based slideshows and electronic book viewers has shown that the Page Model should also apply to screen media and alike.* ++TBD
1
+
<pre class=metadata>
2
+
Title: Proposals for the future of CSS Paged Media
3
+
Shortname: css-page
4
+
Level: 4
5
+
Group: csswg
6
+
Status: UD
7
+
Work Status: exploring
8
+
ED: https://drafts.csswg.org/css-page-4/
9
+
Editor: Daniel Glazman, Disruptive Innovations
10
+
Abstract: A list of issues with the current CSS page model, and possibly directions to explore for fixing it.
11
+
</pre>
12
+
13
+
<h2 id=css-page-model>The CSS 3 Page Model</h2>
14
+
15
+
This section is informative.
16
+
17
+
The current Page Model,
18
+
as described in <cite>CSS3 Module: Paged Media </cite>[[!CSS3PAGE]],
19
+
is the following one:
20
+
the printable area of a page,
21
+
the <dfn export>page box</dfn>,
22
+
is made of one page box itself divided in four areas:
0 commit comments