Nick Vincent wrote:

> http://www.vtype.com/ie7/

> I just spent a couple of hours regressing a bug where IE7 and IE6 
> both incorrectly calculate the top padding of a div cleared past a 
> single floating element.
> 
> Is this a known bug, and if so is there a workaround?

It is a known combination-bug, and most cases can be solved by adding a
'hasLayout'[1] trigger to the right container.

Adding...

#progress {height: 1%;}

...should do in your test-case - at least in IE6 (I don't have IE7).
Of course, such 'hasLayout' triggers may have negative effects in many
cases, and finding the right container to add it to is not always easy
in more complex layouts. Thus, it's not a "general fix".

> I also, interestingly, got this to a point during regression where I
>  could make the padding render correctly by removing the background 
> colour from the "TEXT" div.  This has me horribly confused, so I've 
> chosen to ignore it, although I did save the regression case if 
> anyone's interested.

Browser-bugs are often confusing, since most bugs lack any and all
logic. Bugs are created by humans, so... :-)
This lack of logic is one reason for testing, testing and more testing
in each case, and to avoid noting any solution as the "perfect fix for
all cases".

regards
        Georg

[1]http://www.satzansatz.de/cssd/onhavinglayout.html
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to