W3C home > Mailing lists > Public > www-style@w3.org > August 2005

Re: [css21] anonymous block boxes versus block boxes

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 27 Aug 2005 20:41:31 +0000 (UTC)
To: Anne van Kesteren <fora@annevankesteren.nl>
Cc: www-style@w3.org
Message-ID: <Pine.LNX.4.62.0508272040240.27381@dhalsim.dreamhost.com>

On Fri, 12 Aug 2005, Anne van Kesteren wrote:
> In the first testcase I have used this markup wherein the SPAN element is
> floated to the right:
> # <div>Test<span>Test</span></div>
> Per rule 3 of section 9.7 in CSS 2.1 the computed value of the SPAN 
> element its float property is 'block'. Per section I would then 
> assume that the the first four characters inside the DIV element, all 
> before the start tag of the SPAN element, are inside an anonymous block 
> box.

No, no anonymouse block box; since the <span> is taken out of flow the 
Test is the only contents of the <div> and thus the <div> just has a line 
box. Correct rendering is for Test and Test to be on the same line, 
assuming there is room.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Saturday, 27 August 2005 20:41:40 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:20 UTC