[css-flexbox] Do not shrink tables bellow their intrinsic sizes
Created attachment 442614 [details] Patch
<rdar://problem/84977609>
Comment on attachment 442614 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=442614&action=review r=me > Source/WebCore/ChangeLog:12 > + size and the min-size. Is it only tables? Or there might be other elements we should take care too? I guess not, but it'd be nice to think twice about other cases like an <input>, <fieldset>, <details> or flex/grid/multi-col with gaps.
(In reply to Manuel Rego Casasnovas from comment #3) > Comment on attachment 442614 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=442614&action=review > > r=me > > > Source/WebCore/ChangeLog:12 > > + size and the min-size. > > Is it only tables? Or there might be other elements we should take care too? > I guess not, but it'd be nice to think twice about other cases like an > <input>, <fieldset>, <details> or flex/grid/multi-col with gaps. Yeah, so far only tables are affected. Note that this issue has nothing to do with content size. This is about ignoring what min-height|min-width say when computing the hypothetical main size, i.e. the flex item's min|max limits to be applied to the flex base size. We obbey what min-height|width say for any kind of block. Tables are a bit different on that regard, if the intrinsic size of the table is greater than the used value of min-height|width we must use the intrinsic size no matter what the min-size says. This unique behaviour is exclusive to tables.
Committed r286207 (244589@main): <https://commits.webkit.org/244589@main>
*** Bug 233313 has been marked as a duplicate of this bug. ***