W3C home > Mailing lists > Public > www-style@w3.org > January 2012

RE: [CSS21] BFC may become narrower and collide with a previous float

From: Rossen Atanassov <Rossen.Atanassov@microsoft.com>
Date: Tue, 31 Jan 2012 01:29:31 +0000
To: Alan Gresley <alan@css-class.com>
CC: Morten Stenshorne <mstensho@opera.com>, fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <9A57384B9CE9AE4F9C01F3BB5C3D88440E0177@TK5EX14MBXW603.wingroup.windeploy.ntdev.microsoft.com>
> -----Original Message-----
> From: Alan Gresley [mailto:alan@css-class.com]
> Sent: Monday, January 30, 2012 3:59 PM
> The spec's reference to 'space' is a visual 'width' between the left float
> (magenta) and <div> container. It doesn't matter what the computed and used
> height of the BFC table is. There is nothing in the spec that says that the BFC
> table should clear the left float (blue).

Hello Alan,

I am still not sure why you insist on an interpretation of 'space' as 'width' - can you point me to a specific line in the 2.1 spec?

I am also not sure why you would insist or expect the BFC in your previous example (the auto-height table) to behave different than a single character that is taller than the float?

Here's a modified version of your example.

<!DOCTYPE html>
   div { width: 190px; border: solid thick silver; }
   p   { width: 100px; height: 100px;
         border: dashed; background: yellow; margin: 0; }
   #a { color: magenta; float: left; }
   #b { color: blue;    float: right; }

<p id=a>FLOAT LEFT</p>
<p id=b>FLOAT RIGHT</p>
<span style="font-size: 120px">|</span>

Received on Tuesday, 31 January 2012 01:30:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:10 UTC