Closed Bug 439510 Opened 18 years ago Closed 18 years ago

Add a -moz-XXX CSS property to reduce scrollframes' min-width

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 433621

People

(Reporter: dholbert, Unassigned)

References

()

Details

Before the fix for bug 402567 landed, scrollframes* had min-width = 0, so tables would be able to shrink-wrap them down to small sizes if the table's width was constrained. After the fix for bug 402567 landed, scrollframes now pass through the min-width of their contents. So, when a table directly wraps a scrollframe, the table now effectively stretches to fit the scrollframe's contents' min width. As far as Web Compatibility, the old behavior matches FF2 / Opera, and the new behavior matches IE7 / WebKit. Ideally we'd like a way to allow web-authors to request the old behavior. That would provide easy solutions to, for example, bug 409736 and bug 407257. One way this could be solved is with a new "-moz-XXX" CSS property on the scrollframe that would forcibly reduce its min-width to 0. * Note: "scrollframe" means any frame with style "overflow: XXX", with XXX != 'visible'
Attachment 308992 [details] demonstrates the behavior difference In FF3 (post-402567) and IE7 and WebKit, the red-bordered table expands to accommodate its scrollframe's contents' min-width, making the table stick out of its container. In FF2 and Opera, the red-bordered table doesn't grow beyond the bounds of its container. (and the overflowing text is clipped as a result)
Oops -- Lucas pointed out to me that I already filed bug 433621 for this very issue. :) Marking this one as a dupe.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.