WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
225343
[css-flexbox] Flexbox uses min-width property of table child instead of its effective size
https://bugs.webkit.org/show_bug.cgi?id=225343
Summary
[css-flexbox] Flexbox uses min-width property of table child instead of its e...
Felipe Erias
Reported
2021-05-04 00:34:31 PDT
Failing test: imported/w3c/web-platform-tests/css/css-flexbox/table-as-item-fixed-min-width-3.html A table inside a flex container claims to have a min-width of 50px, but actually its content will make it larger than that. The flex algorithm uses that min-width when distributing the available space, which causes an error in layout when the table ends up taking up more space than expected.
Attachments
Add attachment
proposed patch, testcase, etc.
Felipe Erias
Comment 1
2021-05-04 00:38:40 PDT
RenderFlexibleBox::adjustChildSizeForMinAndMax() returns the wrong width for the child table because it ends up using the min-width value directly. Using the child's minPreferredLogicalWidth() would return the right value in this case, but I haven't yet found a way to do that without causing other tests to fail.
Radar WebKit Bug Importer
Comment 2
2021-05-11 00:35:13 PDT
<
rdar://problem/77809882
>
Ahmad Saleem
Comment 3
2023-07-16 07:45:00 PDT
We are passing this test now:
https://wpt.fyi/results/css/css-flexbox/table-as-item-fixed-min-width-3.html?label=experimental&label=master&aligned
= Marking this as 'RESOLVED CONFIGURATION CHANGED'.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug