W3C home > Mailing lists > Public > www-style@w3.org > March 2008

Re: [CSS21] Concern about anonymous table objects and whitespace

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 03 Mar 2008 22:24:14 -0800
Message-ID: <47CCEB0E.5020206@inkedblade.net>
To: Boris Zbarsky <bzbarsky@mit.edu>
CC: www-style Mailing List <www-style@w3.org>

Boris Zbarsky wrote:
> 
> Consider the following markup (assuming the usual default HTML styling):
> 
>   <body style="white-space: pre">
>     <div style="display:table-cell">One</div>
>     <div style="display:table-cell">Two</div>
>   </body>
> 
> with the whitespace exactly as it is in the example.  Let us denote the 
> whitespace-only Text node between the two HTMLDivElement nodes by the 
> letter W.
> 
> What is the correct rendering?
> 
> Per section 16.6.1 [1], any text that is "directly contained inside a 
> block element" is treated as an anonymous inline.  Does this apply to W?

Hixie points out that the answer here is "no" because of
   http://www.w3.org/TR/CSS21/visuren.html#anonymous
   # Whitespace content that would subsequently be collapsed away according
   # to the 'white-space' property does not generate any anonymous inline
   # boxes.

Does that resolve this issue?

~fantasai
Received on Tuesday, 4 March 2008 06:23:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:02 GMT