Closed Bug 268499 Opened 20 years ago Closed 18 years ago

Shrink-to-fit float is too narrow when preferred width > available width

Categories

(Core :: Layout: Floats, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: MatsPalmgren_bugz, Unassigned)

References

Details

(Keywords: testcase, Whiteboard: [CSS2.1 chap 10.3.5])

Attachments

(1 file)

Shrink-to-fit float is too narrow when preferred width > available width.
That is, when the shrink-to-fit width == avaialable width, according to
CSS2.1 chap 10.3.5. http://www.w3.org/TR/CSS21/visudet.html#q8

STEPS TO REPRODUCE:
1. load attached testcase

ACTUAL RESULTS:
The float is narrower than the first box.

EXPECTED RESULTS:
The float should have the same width as the first box.

(The abs.pos. case is handled in bug 201897)
Attached file Testcase (deleted) —
Whiteboard: [CSS2.1 chap 10.3.5]
(FWIW, I'm not sure it's worth fixing all this stuff before reflow refactoring
-- I'm really hoping to do that soon, and it would probably be more useful to
have your help on the branch once it's started...)
There is a block regression test that also illustrates this:
layout/html/tests/block/bugs/126213-1.html
(when the lower box has more than 1 line of text it should cover the entire
window width)
Bug occurs in Firefox 2006120701 on Linux.
Bug does not occur in Firefox 2006120801 on Linux.

(also verified that layout/html/tests/block/bugs/126213-1.html now works
correctly)

-> FIXED (by the reflow branch landing)
Status: NEW → RESOLVED
Closed: 18 years ago
Depends on: reflow-refactor
Resolution: --- → FIXED
Flags: in-testsuite?
FYI, the testcase could already have been added to the layout regression tests -
I'm not sure.
Flags: in-testsuite?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: