Closed Bug 738926 Opened 13 years ago Closed 10 years ago

Overflow:auto block doesn't clear a float it can't fit next to

Categories

(Core :: Layout: Floats, defect)

x86_64
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 478834
mozilla42

People

(Reporter: Marc42410, Unassigned)

References

Details

(Keywords: regression)

Attachments

(3 files)

Firefox renders some MSNBC Video pages incorrectly. i.e)http://video.msnbc.msn.com/msnbc-tv/46843101/#46839110 The video itself shows okay, but the document underneath it is rendered incorrectly. It shows correctly with IE9 and Opera 11.61. Tested with Firefox 14.0a1 nightly build on 3/24, 2012. The version of executive file is 14.0.0.4466 STR You don't have to do anything special. Just create a new profile and go to the URL I mentioned above.
Attached file reduced html
Regression window with html5=true Cannnot reproduce: http://hg.mozilla.org/mozilla-central/rev/736619af9701 Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a1pre) Gecko/20091101 Minefield/3.7a1pre ID:20091101045105 Can reproduce: http://hg.mozilla.org/mozilla-central/rev/00924c08d33d Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a1pre) Gecko/20091102 Minefield/3.7a1pre ID:20091102045658 Pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=736619af9701&tochange=00924c08d33d Triggered by: Bug 501847
Component: General → Layout
OS: Windows 7 → All
Product: Firefox → Core
QA Contact: general → layout
Blocks: 501847
Setting the "overflow" Rule to "none" for the "content/transcript" DIVs makes the Rendering equal amongst the Browsers in the reduced Testcase.
So this page has two left floats followed by an overflow:auto div, all inside an inline which is inside a fixed-width container. All the patch in bug 501847 did was make the floats not be kids of the same block as the overflow-auto div. Really minimal testcase coming up that shows the real problem here. Pretty sure this is a duplicate....
Status: UNCONFIRMED → NEW
Component: Layout → Layout: Floats
Ever confirmed: true
QA Contact: layout → layout.floats
Summary: Firefox renders the page incorrectly → Overflow:auto block wrapped in another block doesn't clear a float it can't fit next to
Blocks: 741205
Keywords: regression
Actually, looks like my minimal testcase was not quite minimal enough. You don't even need the "wrapped in another block" bit. And it's a problem going back forever (e.g. Firefox 2 has it).
Summary: Overflow:auto block wrapped in another block doesn't clear a float it can't fit next to → Overflow:auto block doesn't clear a float it can't fit next to
Mats, do you have time to look into this?
Flags: needinfo?(mats)
Not anytime soon, sorry. I'm busy with implementing Grid layout and I suspect fixing this bug is harder than it might seem, given that dbaron analyzed it (comment 6) but didn't provide a fix.
Flags: needinfo?(mats)
Blocks: 1162946
fixed by bug 478834
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Target Milestone: --- → mozilla42
No longer blocks: 741205
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: