Re: Publishing the flexible box model

Andrew Fedoniouk wrote:
> Robert O'Callahan wrote:
>> There will also be interesting interactions between flex-units and 
>> clearance.
>> <div style="overflow:auto;" class="block-formatting-context">
>>   <div style="height:1*;">Hello</div>
>>   <div style="float:left;">Kitty</div>
>>   <div style="clear:left;">Kitty</div>
>> </div>
>> Since we don't know the vertical positions until the end, we can't 
>> know whether to clear or not. If we treat 1* as auto while we compute 
>> clearance, the results are going to be really bad when we apply flex 
>> at the end.
> As I said floats are not the best friends of flexes. But if flexes and 
> the flow attribute will be implemented you will see a dramatic reduction 
> of floats uses.
> All cases when floats are used currently for horizontal block layout 
> purposes can be implemented significantly better and more reliable with 
> flexes.

Sorry Andrew but I disagree totally here. The beauty of the using floats 
is that any block elements following in the source will expand the full 
width of their containing block in the presence of floated elements 
after widths and margins are calculated.

Can the flex-box-model to something similar, like show the elements (ie. 
red border and image) behind the floats?

To say that there would be a reduction of the use of floats by authors 
is not true since floats can be used in many different ways for very 
different layouts.

You are a programmer and browser impersonator. Are you also a CSS 
author? Have you ever done CSS layouts? If the answer is no to both 
these questions then you are not in the position to judge if the 
flex-box-model could replace the use of floats by authors.


Received on Saturday, 7 June 2008 14:26:07 UTC