Closed Bug 369361 Opened 18 years ago Closed 16 years ago

Floated list item creates doubled margin on other list items

Categories

(Core :: Layout, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: chris.ovenden, Unassigned)

References

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2pre) Gecko/20070205 Minefield/3.0a2pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2pre) Gecko/20070205 Minefield/3.0a2pre

I have a list with four items. The first is floated left with a width of 250px. The others have a left margin of 270px, but those which appear next to the floated item have a left margin which is approximately double what it should be. Items appearing below the float have the correct margin. This displays normally in IE7 and Opera 9.0.2, and also in Firefox if the UL and LI elements are replaced by DIVs.

Reproducible: Always

Steps to Reproduce:
See attachment



Discovered in FF 2.0; still present in 3.0a2
Attached file Test case
This HTML demonstrates the bug
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
Version: unspecified → Trunk
While buggy in Firefox 2, I can't reproduce the problem in release builds of Firefox 3 or on trunk.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
Attached patch two reftestsSplinter Review
One for left and one for right floaters.
Attachment #358621 - Flags: superreview?(dbaron)
Attachment #358621 - Flags: review?(dbaron)
Comment on attachment 358621 [details] [diff] [review]
two reftests

r+sr=dbaron, although I expect the tests added for bug 413840 covered this case
Attachment #358621 - Flags: superreview?(dbaron)
Attachment #358621 - Flags: superreview+
Attachment #358621 - Flags: review?(dbaron)
Attachment #358621 - Flags: review+
Flags: in-testsuite?
Keywords: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/7417bc6b3de5
Flags: in-testsuite? → in-testsuite+
Keywords: checkin-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: