Closed Bug 86746 Opened 24 years ago Closed 24 years ago

layout flips back and forth between allowing space for a float or not [FLOAT] {ll} [INLINE] [TEXT]

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla0.9.3

People

(Reporter: scc, Assigned: dbaron)

References

(Blocks 1 open bug, )

Details

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

Attachments

(1 file)

Go to http://ScottCollins.net/journal/#progress note whether the section `work in progress' has incorrectly left room as if to account for the `last modified' float above and to the right. Grow the window. Layout fixed. Grow the window. Extra space again. This is very easy to show on the Mac because of bug #86740, but Waterson and I verified on all first tier platforms.
I'll try to find a minimal test case. CC'ing hixie, maybe he can help.
Attached file a minimal test case
as the attached minimal test case shows, key to this bug is |text-align: right| on the float. Playing with the font size and margins of the float to make it interfere or not with the objects below it gives you interesting results. The real problem seems to be the floats decision to need a line break sometimes. Hope this helps.
The problem is actually that there is a space at the start and end of the float's contents, which is rather strange. See the following tests: http://www.hixie.ch/tests/adhoc/css/box/float/011.xml http://www.hixie.ch/tests/adhoc/css/box/float/012.xml http://www.hixie.ch/tests/adhoc/css/box/float/013.xml Note. You will need the Ahem font for these tests. You may obtain a copy here: http://www.hixie.ch/resources/fonts/
Blocks: float
Summary: layout flips back and forth between allowing space for a float or not → layout flips back and forth between allowing space for a float or not [FLOAT] {ll} [INLINE] [TEXT]
Whiteboard: [Hixie-P3]
I've adjusted my journal page (intentionally) so it no longer exhibits the problem. Updating the URL link above to point to my test case (if you find that helpful). I downloaded Hixie's font and tried his test cases; they seem even simpler than mine :-)
My patch on bug 85876 fixes the flipping. I don't think it fixes Ian's test cases, though.
Taking this bug, since I've fixed the original bug. I think the other problems with Ian's testcases are part of bug 4248. Ian - if you think your testcases show a bug that should be separate from bug 4248, please file it.
Assignee: waterson → dbaron
Target Milestone: --- → mozilla0.9.3
Fix checked in 2001-07-18 19:33 PDT (see bug 85876 for more details).
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: