XP> [CSS3 Paged Media] Page collapsing

XP> [CSS3 Paged Media] Page collapsing

Michael Sweet mike at easysw.com
Mon Oct 2 20:21:34 EDT 2006


Atsushi Nakamura wrote:
> Melinda,
> 
> This may be just a way of thinking, but
> I don't think authors would unintentionally place consecutive page breaks,
> but they will be intentional. Collapsing them would neglect author's intent
> 
> Authors would likely place "just" page breaks
> where they want page breaks to occur, since "page-break-after:always;"
> has a function on it's own, and normally would not think it would require
> some "magic".
> 
> If other tags (or styles) behave he same way, this would be a different 
> story.
> However, consecutive <br>s do not collapse, consecutive <p>s do not 
> collapse,
> and styles do not collapse. Under this condition, the behavior proposed 
> seems strange.

To be the "devil's advocate", CSS *does* collapse margins between
elements, and you could consider page breaks as a special kind of
margin/whitespace separator.

So for two consecutive elements, the first with "page-break-after:
always" and the second with "page-break-before: always", would
result in a single page break, while other scenarios would result
in two breaks, e.g.:

     before + before = 2 page breaks
     before + after = 2 page breaks
     after + before = 1 page break
     after + after = 2 page breaks

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Publishing Software        http://www.easysw.com



More information about the Xp mailing list