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

On Wednesday 2012-01-25 23:07 -0800, fantasai wrote:
> Dear Layout Engineers,
> 
> http://lists.w3.org/Archives/Public/www-archive/2012Jan/att-0035/foo.html
> 
> Really?
> 
> <style>
>   #a { float: left; }
>   #b { float: right; }
>   p  { width: 100px; height: 100px; }
>   div { width: 190px; }
> </style>
> 
> <div>
> <p id=a>FLOAT LEFT</p>
> <p id=b>FLOAT RIGHT</p>
> <table><tr><td>table table table table table table table table</table>
> </div>
> 
> +------------------------+
> |+------------+ +-------+|
> || FLOAT LEFT | | table ||
> ||            | | table ||
> |+------------+ | table ||
> |          +------------+|
> |          |FLOAT RaGlT ||
> |          |      table ||
> |          +------------+|
> |               | table ||
> |               +-------+|
> +------------------------+

This is the not-yet-fixed block part of
https://bugzilla.mozilla.org/show_bug.cgi?id=25888 .
(The inline part is fixed.  I should probably split it into multiple
bugs at some point.)

Last time I attempted to fix this, I think I gave up around when I
got to figuring out how to do margin collapsing correctly.  I think
there was something else pretty hard about it as well, though.

-David

-- 
𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                           http://www.mozilla.org/   𝄂

Received on Thursday, 26 January 2012 17:39:25 UTC