W3C home > Mailing lists > Public > www-style@w3.org > October 2012

[css3-page] Allowed page breaks for inline-block

From: Koji Ishii <kojiishi@gluesoft.co.jp>
Date: Sat, 20 Oct 2012 09:24:30 -0400
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <A592E245B36A8949BDB0A302B375FB4E0DA33AC658@MAILR001.mail.lan>
Recently I heard two different interpretations of "Allowed page breaks" in CSS3 Paged Media[1] (and also the same text appear in CSS 2.1,) I appreciate experts' opinion for what's the expected behavior.

Consider the following markup.

<p>ABC<span style="display:inline-box">DEF DEF DEF...</span><p>

The spec says "between line boxes inside a block box." When " DEF DEF DEF..." is very long, longer than a page, I heard two different interpretations.

1. <p> is a block, and the <p> has a big line box. Since the linebox is bigger than the page, it's an overflow behavior and therefore page can break anywhere, even if it's at the middle of a line inside the span.

2. There are nested line boxes inside the span. UA should only break pages between the line boxes inside the span.

Which is correct?

Note that IE behavior is 2, and Firefox/WebKit is 1.

[1] http://dev.w3.org/csswg/css3-page/#allowed-pg-brk

Received on Saturday, 20 October 2012 13:25:00 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:22 UTC