Skip to content
This repository

Cross Browser Compatiblity with Firefox 4 with ol > li / overflow: auto; #524

Closed
RobertLowe opened this Issue · 3 comments

2 participants

Robert Lowe Justin French
Robert Lowe

Going to post this on Bugzilla but:

With the introduction of the new Firefox 4 release, it induces an odd behavior, giving focus to li elements of a ol with overflow: auto;

form.formtastic fieldset > ol > li { overflow:auto; } /* clearing contained floats */

Regards

Justin French
Owner

Oh fun! Will investigate. Off the top of my head, it's only necessary to clear the floats if you're styling the containing element that has the overflow:auto; hack. You could try replacing overriding that with overflow:visible;.

If you find an acceptable work-around, PLEASE update this issue to save me some work :)

Robert Lowe

Busy consulting right now, I'll fork a fix and update you tonight if you don't beat me to the punch

Justin French
Owner

Ok, looks like there's still no fix (and not much noise about this) online. Was able to repeat the issue in FF4, and was able to resolve the issue by changing the overflow hack to overflow:hidden, which seems to be acceptable according to this article on Quirks Mode.

Justin French justinfrench closed this issue from a commit
Justin French Work-around for Firefox 4 giving focus to the <li> wrapper (fixes #524).
http://www.quirksmode.org/css/clearing.html states that auto and hidden work, quick test in major browsers confirms
b230629
Kjel Delaey trimentor referenced this issue from a commit
Justin French Work-around for Firefox 4 giving focus to the <li> wrapper (fixes #524).
http://www.quirksmode.org/css/clearing.html states that auto and hidden work, quick test in major browsers confirms
f7ca5f5
Robert Wahler robertwahler referenced this issue from a commit in robertwahler/formtastic
Justin French Work-around for Firefox 4 giving focus to the <li> wrapper (fixes #524).
http://www.quirksmode.org/css/clearing.html states that auto and hidden work, quick test in major browsers confirms
49de2d9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.