W3C home > Mailing lists > Public > www-style@w3.org > May 2011

[CSS21] 'page-break-before: always' question

From: Gérard Talbot <www-style@gtalbot.org>
Date: Sat, 14 May 2011 13:23:01 -0700
Message-ID: <4866d4543c99e6058e1428656b0f0db6.squirrel@cp3.shieldhost.com>
To: "W3C style mailing list" <www-style@w3.org>
Dear fellow www-style colleagues,

Testcase (RC6) from CSS 2.1 test suite:
http://test.csswg.org/suites/css2.1/20110323/html4/page-break-before-004.htm

Same testcase:
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/page-break-before-004.htm

"This test produces *_one or_* two pages of output on paged media. (...)"

Can someone explain to me why such test should be considered as passed
if only 1 page is printed?

I think if only 1 page is printed, then this should constitute a test
failure.

What am I missing here?

Browser results wrt such testcase
---------------------------------

Firefox 4.0.1 (only print preview), Opera 11.10 (only print preview),
Konqueror 4.6.3 and Safari 5.0.5 print 2 pages: 1st printed page is blank
and second printed page has the 3 sentences of text of the test... which
is exactly what I would expect from the test.

Chrome 11.0.696.68 and IE8 print only 1 page (that has the 3 sentences of
text of the test) ... which is NOT what I would expect from any/all
browsers executing the test.

Not tested in IE9.

References
----------
"always
    Always force a page break before (after) the generated box."
http://www.w3.org/TR/CSS21/page.html#page-break-props

http://www.w3.org/TR/css3-page/#pg-br-before-after


best regards, Gérard Talbot
-- 
CSS 2.1 Test suite RC6, March 23rd 2011
http://test.csswg.org/suites/css2.1/20110323/html4/toc.html

Contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

Web authors' contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html
Received on Saturday, 14 May 2011 20:23:30 GMT

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