Open Bug 394738 Opened 18 years ago Updated 3 years ago

Wrong box sizing if multi-line <description> follows element with max-height set

Categories

(Core :: Layout, defect)

x86
Windows XP
defect

Tracking

()

People

(Reporter: jwkbugzilla, Unassigned)

References

Details

Attachments

(1 file)

553 bytes, application/vnd.mozilla.xul+xml
Details
Attached file Testcase
See attached testcase - we have two elements in a <hbox>, one has max-height CSS property set and the next one is a multi-line <description> element. For some reason, this max-height property on a child changes height of the container so that it can only hold one line of the <description> element and (some of) the rest is painted outside the box. I see this in Firefox 2.0.0.6 and on trunk.
For some reason, the testcase I attached only works if you download it and open from file:///. And a note: putting the element with max-height inside a <vbox> element makes everything work correctly again.
Comment on attachment 279436 [details] Testcase Sorry, my fault - set a wrong content type for the testcase. Now it should work online as well.
Attachment #279436 - Attachment mime type: text/html → application/vnd.mozilla.xul+xml
No longer blocks: tomtom
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: