Closed Bug 169616 Opened 23 years ago Closed 23 years ago

Box elements don't always resize when content changes

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: sunsear, Assigned: dbaron)

References

()

Details

In the URL, there's two versions of the same this. * A div with a table with some rows in it. When the content inside the inner table changes, the inner table resizes, but the div outside that doesn't resize. * A table with one row and one td with the same kind of table with some rows in it. When the content inside the inner table changes, the inner table resizes, and the outer table follows suit. Using Mozilla 1.1 on Windows XP
This is a bug in IE for Windows. The 'width' property means 'width', not 'min-width', except on tables (which are different for just about everything). As far as I can tell, our behavior is correct. (See http://www.w3.org/TR/REC-CSS2/tables.html#auto-table-layout for the exception for tables.)
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
David, I agree, that the width property on the DIV should make sure that the div doesn't get any bigger. But shouldn't the table try to reflow to fit the div? All logic tells me, that an element inside another element, should never be bigger than the outer element, unless position:absolute or one of the other properties have been specified. Please confirm.
It does "try", but it can't be any narrower.
You need to log in before you can comment on or make changes to this bug.