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

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 UTC