Floats and block widths applied in the incorrect order

This bug is caused by IE not calculating position of floats correctly. As far as I can tell the left edge of the content is calculated and then the width is applied, the correct behaviour is to apply the width and then see where the content should be layed out due to any floats.

Test page Workaround is not included
Reported by: Marc Pacheco.

Explorer 5-6 Windows, Explorer 7, Explorer Mac | Reported on 9 December 2005.

This site is no longer maintained. I’m sorry, but it’s just too much work for too little return. You can continue to browse old bug reports, though.

Search reports by browser:

Atom RSS


(Add your own)

1 Posted by mike on 9 December 2005 | Permalink

I'm not sure that this is a bug. If the 3 divs are floated, then shouldn't any following content float next to it?

If you shrink the browser width, the divs wrap properly.

In Firefox, however, the unfloated block starts in the top left corner of the floated divs, with the text starting below the floaters. That seems buggy to me.

2 Posted by Marc Pacheco on 12 December 2005 | Permalink

No the firefox behavior is correct see: http://www.w3.org/TR/CSS21/visuren.html#propdef-float

notice the example with the long text and also in the discription it states:
if a shortened line box is too small to contain any further content, then it is shifted downward until either it fits or there are no more floats present.