IE7-/Win: Problems with float + clear on the same element

1.

b1. float
one
two
b2. float + clear, blah blah blah blah blah blah blah
one
b3. not float
one
two
three
four
five

1a.

b1. float
one
two
b2. float + clear, blah blah blah blah blah blah blah
one
b3. float
one
two
three
four
five

2.

b1. float
one
two
b2. not float
b3. float + clear, blah blah blah blah blah blah blah
one
b4. not float
one
two
three
four
five

2a.

b1. float
one
two
b2. not float
b3. float + clear, blah blah blah blah blah blah blah
one
b4. float
one
two
three
four
five

3.

b1. float
one
two
b2. float, blah blah blah blah blah blah blah
one
b3. not float
one
two
three
four
five

4.

b1. float
one
two
b2. not float
b3. float
b4. float + clear, blah blah blah blah blah blah blah
one
b5. not float
one
two
three
four
five

5.

b1. float
one
two
b2. float + clear, blah blah blah blah blah blah blah
one
b3. not float
one
two
three
four
five

In the above test cases there are boxes in a gray container, called b1, b2, b3, ... according to their source order. All the boxes (and the container) have hasLayout (MS.) The combination float+clear triggers several anomalies in IE7-/Win (the "3px gap" and the "MS float model" are also in effect here.)

In the following test cases a float and a float+clear are simply followed by inline text. No big problems here in IE7- except some overlapping between the in-flow text and the second float. In some circumstances this also occurs in other browsers inline content overlapping an earlier float in Gecko.

6.

b1. float
one
b2. float + clear, blah blah blah blah blah blah blah
one
Sempre caro mi fu quest’ermo colle, e questa siepe, che da tanta parte de l’ultimo orizzonte il guardo esclude. Ma sedendo e mirando, interminato spazio di là da quella, e sovrumani silenzi, e profondissima quiete io nel pensier mi fingo, ove per poco il cor non si spaura. E come il vento odo stormir tra queste piante, io quello infinito silenzio a questa voce vo comparando: e mi sovvien l’eterno, e le morte stagioni, e la presente e viva, e ’l suon di lei. Così tra questa infinità s’annega il pensier mio: e ’l naufragar m’è dolce in questo mare.

7.

b1. float
one
b2. float + clear
one
Sempre caro mi fu quest’ermo colle, e questa siepe, che da tanta parte de l’ultimo orizzonte il guardo esclude. Ma sedendo e mirando, interminato spazio di là da quella, e sovrumani silenzi, e profondissima quiete io nel pensier mi fingo, ove per poco il cor non si spaura. E come il vento odo stormir tra queste piante, io quello infinito silenzio a questa voce vo comparando: e mi sovvien l’eterno, e le morte stagioni, e la presente e viva, e ’l suon di lei. Così tra questa infinità s’annega il pensier mio: e ’l naufragar m’è dolce in questo mare.

Other problems in IE7-/Win caused by float and clear on the same element

CSS tests home