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

Re: [CSS21] [css3-page] page-break collapsing

From: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 30 Nov 2011 07:06:41 -0800
Message-ID: <4ED64681.2010904@inkedblade.net>
To: www-style@w3.org
On 11/30/2011 02:22 AM, Simon Sapin wrote:
> Le 29/11/2011 17:45, fantasai a écrit :
>> At TPAC we resolved to clarify CSS2.1 to say that the 'page-break-before' and
>> 'page-break-after' properties don't create a break if you're at the top of the
>> page, where at the top of the page means no content has been placed, with
>> borders not counting as content but empty zero-height blocks counting as content.
>
> Do anonymous blocks containing only collapsible whitespace count as content too?

No, because they don't exist.

> Example document fragment:
>
> <div style="white-space: normal">
> <p>Something</p>
> <p>Something else</p>
> </div>
>
> It is my understanding of sections 9.2, 9.4.1 and 16.6.1 of CSS 2.1 that white-space between blocks ends up in a zero-height
> anonymous block:
>
> The white-space is text and thus generates an anonymous inline box.

You missed this part:
   http://www.w3.org/TR/CSS21/visuren.html#anonymous
   # White space content that would subsequently be collapsed away according
   # to the 'white-space' property does not generate any anonymous inline boxes.

~fantasai
Received on Wednesday, 30 November 2011 15:07:22 GMT

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