Skip to content

Commit 431391d

Browse files
committed
[css-page-4][editorial] Fixed Bikeshed issues
1 parent 71e0180 commit 431391d

File tree

1 file changed

+109
-1
lines changed

1 file changed

+109
-1
lines changed

css-page-4/Overview.bs

Lines changed: 109 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,109 @@
1-
<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:
23+
24+
<figure>
25+
<img src="images/PageBox.png" width="267" height="266"
26+
alt="CSS 3 Paged Media's page model">
27+
<figcaption>The CSS3 Page Model</figcaption>
28+
</figure>
29+
30+
1. the <dfn export>page margin</dfn>;
31+
that area is itself divided into 16 <dfn export>page-margin boxes</dfn>
32+
(@top-left-corner, @top-left, @top-center, etc. )
33+
34+
<figure>
35+
<img src="images/RightMarginBoxes.png" width="181" height="226">
36+
alt="CSS 3 page-margin boxes">
37+
<figcaption>The 16 page-margin boxes<br>
38+
(with highlight of 3 of them)<br>
39+
</figcaption>
40+
</figure>
41+
42+
2. the <dfn export>page border</dfn>
43+
3. the <dfn export>page padding</dfn>
44+
4. and finally the <dfn export>page area</dfn>
45+
containing the boxes generated by
46+
the flow of the main contents of the document.
47+
48+
It's is possible to flow content,
49+
for instance page headers and footers or footnotes,
50+
into a page-margin box
51+
using features introduced by the
52+
<cite>CSS Generated Content for Paged Media Module </cite>[[!CSS3GCPM]].
53+
54+
It is also possible to define multiple page templates for a single document
55+
using the <span class="css">@page</span> at-rule
56+
that allows to select the
57+
first page, left pages, right pages or named pages of a paginated flow.
58+
59+
If this page model allowed the publishing industry to adopt HTML and CSS as pivot formats,
60+
it starts showing its limits for the following reasons:
61+
62+
* the 16 page-margin boxes are an extension
63+
of the print features offered by desktop browsers.
64+
Desktop browsers usually offer control over 6 page-margin boxes only.
65+
Only one desktop browser claims implementation
66+
of the page model described above in the fourteen last years.
67+
The other desktop browsers' control over the 6 page-margin boxes
68+
is then not achieved through the cascade of CSS UA stylesheets.
69+
* no editing environment available on the market
70+
and in particular Wysiwyg text editor
71+
(for instance like Microsoft Word)
72+
implements such a box model.
73+
* it's not possible with the current model to position headers and footers
74+
(for instance the HTML5 header and footer elements)
75+
arbitrarily in the page area.
76+
* the ''@page'' at-rule currently allows nested at-rules
77+
only for the definition of page-margin boxes.
78+
Similarly, the set of CSS properties applicable to a page box
79+
is limited and it is impossible in this model to use
80+
<cite>CSS Regions Module Level 3</cite> [[!CSS3-REGIONS]]
81+
to flow content into a given predefined area of a page,
82+
exclude an area from the page using
83+
<cite>CSS 3 Exclusions and Shapes Module</cite> [[!CSS3-EXCLUSIONS]],
84+
lay out the page area into a grid using
85+
<cite>CSS Grid Layout</cite> [[!CSS3-GRID-LAYOUT]]
86+
or using ''@slot'' rules
87+
that were discussed multiple times by the CSS Working Group
88+
in the recent past.
89+
The successful electronic book editing environment of Apple Inc.,
90+
iBooks Author,
91+
already allows ''@page'' rules to specify
92+
arbitrary slots,
93+
arbitrary exclusions and shapes,
94+
and extends the list of applicable properties;
95+
most of its advanced layout capabilities are based on these features.
96+
* the ''@page'' rule of <cite>CSS 2.1</cite> [[!CSS21]]
97+
is intended for use on print media,
98+
not dynamic media.
99+
The spread of complex HTML-based slideshows and electronic book viewers
100+
has shown that the Page Model should also apply to screen media and alike.
101+
* ++TBD
102+
103+
<h2 class=no-num id=privacy>Privacy Considerations</h2>
104+
105+
No new privacy considerations have been reported on this specification.
106+
107+
<h2 class=no-num id=security>Security Considerations</h2>
108+
109+
No new security considerations have been reported on this specification.

0 commit comments

Comments
 (0)