Floats and block widths applied in the incorrect order

Atom RSS

This site heavily relies on bug reports created by its readers. Anyone can report a bug and be published.

Main navigation:




Search reports by browser:

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 beta 2, Explorer Mac | Reported on 9 December 2005.

Comments

(Add your own)

Posted by mike on 9 December 2005

1

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.

Posted by Marc Pacheco on 12 December 2005

2

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.

Post a comment

Commenting guidelines:

  1. When quoting specs, articles or your own research, please include a URL of the document.
  2. Test your stuff. When reporting browser behaviour, make sure that your report is correct.

Yes