- From: Alan Gresley <alan@css-class.com>
- Date: Thu, 17 Mar 2011 23:50:33 +1100
- To: Anton Prowse <prowse@moonhenge.net>
- CC: "www-style@w3.org" <www-style@w3.org>, fantasai <fantasai.lists@inkedblade.net>
On 4/08/2010 4:05 AM, Anton Prowse wrote: > fantasai wrote: >> On 08/01/2010 02:45 PM, Anton Prowse wrote: [snip] >>> Issue 3: >>> >>> What /does/ happen when an inline box contains a float? Does the run of >>> inlines+floats in which it sits get wrapped in an anonymous block box >>> which becomes the sibling of the floats? If so, this needs stating. >> >> I don't understand. What case exactly are you talking about? > > <div>start <span style="float:left">middle</span> end</div> > > The float is taken out of the flow, but the div is a block box and can > only contain all inline-level or all block-level content. Under the > assumption that the div _contains_ the block box of the float, then we > either need to ensure that the div's inline content is wrapped in an > anonymous block-level box, or that the float is ignored for the purposes > of enforcing block container box behaviour on the div. > > Thinking on this further, however, I think that "out of flow" probably > means that the float box isn't "contained" by the div box, in which case > things already hold together correctly. This might be worth clarifying > in the spec, though. Anton, I think you missing the concept that since a floated element is taken out of the flow, the block-level box does not cause the inline boxes to be split. There are no anonymous blocks in the below example, <div>start <span style="float:left">middle</span> end</div> since what we have is inline boxes in normal flow. Like below. <div>start end</div> -- Alan http://css-class.com/ Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
Received on Thursday, 17 March 2011 12:51:10 UTC