W3C home > Mailing lists > Public > public-css-testsuite@w3.org > December 2010

page-breaks-101 probably invalid

From: L. David Baron <dbaron@dbaron.org>
Date: Thu, 2 Dec 2010 22:47:50 -0800
To: public-css-testsuite@w3.org
Message-ID: <20101203064750.GA3501@pickering.dbaron.org>
I think this test:
http://test.csswg.org/suites/css2.1/20101027/html4/page-breaks-101.htm
is probably invalid.

While the behavior it suggests seems desirable to me, I don't think
the behavior is what the spec says to do.  As far as I can tell, the
rules in the "Allowed page breaks" section do not allow any breaks
after the P, only before it, since they only allow breaking in
margins that are *between* block boxes, not between the last child
block of a block and its parent block.  The rules in that section
only allow ignoring a margin when it was broken across.

As far as I can tell, the correct layout according to the spec is
probably to have two pages, with the P on the *second* page, and the
bottom border of the div overflowing past the bottom of the second
page and thus invisible.  (I don't think that's a particularly
desirable result, though.)

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Friday, 3 December 2010 06:48:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 3 December 2010 06:48:30 GMT