Closed Bug 1820 Opened 26 years ago Closed 26 years ago

height calculation incorrect for elements with floating children

Categories

(Core :: Layout, defect, P2)

Other
Other
defect

Tracking

()

VERIFIED DUPLICATE of bug 1102

People

(Reporter: dbaron, Assigned: buster)

References

()

Details

According to the CSS2 spec (see http://www.w3.org/TR/REC-CSS2/visudet.html#q17 ), floating children should not be taken into account when calculating height. That means that a box that has all children floating has the same height as an empty box (I'm not sure whether this is zero or whether it is the height of one line.) This is causing a problem at the above test (the boxacidtest). The problem is that the UL box is being enlarged to move down to the inner top (content top) of its last floating child (the LI ID="baz"). This causes the BLOCKQUOTE and the H1 to be displaced 2em downwards, 1em for their own margin and 1em for the margin of the UL. However, this movement downwards is in itself erroneous (although this part of the spec is arguable -- I think it should be changed because it leads to a layout algorithm that I think could be infinitely recursive).
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → DUPLICATE
*** This bug has been marked as a duplicate of 1102 ***
QA Contact: 4110
Status: RESOLVED → VERIFIED
Verified dup of 1102 (which is now fixed).
You need to log in before you can comment on or make changes to this bug.