W3C home > Mailing lists > Public > www-style@w3.org > January 2010

[css3-page] page-break-after:always just before the end of body

From: Yuzo Fujishima <yuzo@google.com>
Date: Fri, 22 Jan 2010 11:02:53 +0900
Message-ID: <9124e09b1001211802o2964b708y4092477843015471@mail.gmail.com>
To: www-style@w3.org
Hi,
Suppose that
  there is a block-level element just before the end of body
and that
  the element has page-break-after:always property.
(See an example below.)

Should the pages break there? In other words, should a content-empty page
follow the penultimate page?

http://dev.w3.org/csswg/css3-page/#forced-pg-brk says:
no content-empty pages are generated by page-break properties, except for
at most one content-empty page as may be required by ‘right’ and ‘left’
values to position ensuing content on a right- or left-facing page. 

Although the above line is for when multiple page-break-* properties apply
at a margin,
it seems to be a good general guideline.

I believe vast majority of users don't want a content-empty page at the end.

Example:

.section {page-break-after:always;}
...
<body>
  <div class="section">
    ...
  </div>
  <div class="section">
    ...
  </div>
<body>
...

Yuzo
Received on Friday, 22 January 2010 02:03:44 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:23 GMT