Closed Bug 82313 Opened 23 years ago Closed 22 years ago

Reflow not correctly positioning floats [FLOAT]

Categories

(Core :: Layout, defect, P2)

x86
Windows 2000
defect

Tracking

()

RESOLVED FIXED
Future

People

(Reporter: ian, Assigned: alexsavulov)

References

(Blocks 1 open bug, )

Details

(Keywords: css1, testcase, Whiteboard: [Hixie-P2])

STEPS TO REPRODUCE
   1. Open http://bugzilla.mozilla.org/showattachment.cgi?attach_id=19134
   2. Resize the window

EXPECTED RESULTS
   As the window is resized, the floats should wrap around.

ACTUAL RESULTS
   The rendering is correct on the initial reflow, but subsequent reflows don't
   get the right layout.

NOTES
   The original testcase:
      http://www.geocities.com/theamigo42/mozfloatbug.html
   does this right for some reason.
Blocks: float
Whiteboard: [Hixie-P2]
Target Milestone: --- → mozilla1.0
This seems OK in current builds.
Er, now I'm looking at it on Windows and it doesn't.  We seem to be wrapping the
text and not wrapping the floats.
Is this really a bug?

The main difference I see is that the attachment
<http://bugzilla.mozilla.org/showattachment.cgi?attach_id=19134> has the code:

 body {
   white-space: nowrap
 }

which is not present in my test case:
<http://www.geocities.com/theamigo42/mozfloatbug.html>

Isn't that what white-space: nowrap is supposed to do?
no, 'white-space: nowrap' should not affect floats.  But I think I know why it's
happening.  See bug 95511 / bug 95512.
See also bug 97383, although the comment I made before doesn't make as much
sense to me now as when I wrote it.
Target Milestone: mozilla1.0 → Future
Status: NEW → ASSIGNED
Target Milestone: Future → mozilla0.9.9
WFM, fresh Linux CVS.
Reassigning to Alex
Assignee: waterson → alexsavulov
Status: ASSIGNED → NEW
Priority: -- → P2
Target Milestone: mozilla0.9.9 → Future
Keywords: mozilla1.0+
Keywords: mozilla1.0
Keywords: mozilla1.0+mozilla1.0-
yeah it looks ok to me too. however there is another issue here: resizing the
window and hiting refresh casues elements to change the layout (test: enlarge
the window as far as possible/hit refresh, shrink the window to under width of
the widest floater, hit refresh)

need another bug on that
WorksForMe using FizzillaCFM/2002070913. All three boxes remain in the same
position regardless of browser width and reloading.
...which is an even more serious bug than the one here.
For me, CVS tip on a Linux-kernel OS shows exactly the same behaviour as I
originally reported. Window resizes have no effect, reloads do.
gets fixed by patch to bug 78820
Depends on: 78820
got fixed by the fix for bug 78820
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.