Previous Message
Next Message

Firefox 1.0 rc2 not respecting clear:both; bug or correct behaviour?

Sent by Peter-Paul Koch on 7 November 2004 19:07


This problem is *not* limited to Firefox 1.0 rc2 OS X. Your test page
has exactly the same trouble in my FF 1.0rc1 and Moz 1.6, both on
WinXP.

I know that an empty clearer div works sometimes, but not always, but
unfortunately I haven't been able to determine exactly which
circumstances trigger the bug. Any comment is welcome.

In any case this is a general Mozilla bug, and not limited to just one version.

> Two days ago, I realized that Firefox 1.0 Release Candidate 2 on Mac OS
> X will not behave the same as previous versions in certain cases. It
> turned out that it will not respect the following rule:
> 
> .clear { clear: both; }
> [... some floated divs...]
> <div class="clear"> </div>
> 
> I have put up a very simple demo at:
> http://www.ntony.net/temp/ffrc2_osx_clearing.html
> 
> As soon as that <div> gets some content, the clear is respected; using
> a <br> or <hr> with a class of "clear" works, too - just not an empty
> <div>. It worked in Firefox versions prior to 1.0rc2, though. Other
> browsers, such as Safari or Camino, respect the clear on the empty
> <div>.
> 
> The Question now: Is this a bug introduced in Firefor 1.0rc2, or is it
> correct behaviour, and Firefox is more strict about the rules than
> other browsers? How is a <div> without content supposed to behave?

-- 
-------------------------------------------------------------------
ppk, freelance web developer
Interactie, copywriting, JavaScript, integratie
http://www.quirksmode.org/ 
------------------------------------------------------------------
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: