You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://bugs.webkit.org/show_bug.cgi?id=224934
Patch by Felipe Erias <felipeerias@igalia.com> on 2021-04-25
Reviewed by Darin Adler.
LayoutTests/imported/w3c:
Update expectations.
* web-platform-tests/css/css-flexbox/table-with-percent-intrinsic-width-expected.txt: This test now passes.
Source/WebCore:
If a table's parent has set an overriding width on it, that value will get preference over the one from
the table's "width" property. This fixes several tests where the width assigned by the flexbox algorithm
did not match the width of the table after layout.
* rendering/AutoTableLayout.cpp:
(WebCore::AutoTableLayout::applyPreferredLogicalWidthQuirks const): Give precedence to the element's
overriding width if it has been set.
* rendering/RenderTable.cpp:
(WebCore::RenderTable::updateLogicalWidth): Give precedence to the element's overriding width if it
has been set, instead of discarding it if it is smaller than the style width.
(WebCore::RenderTable::computePreferredLogicalWidths): Take the overriding width into account when
computing the preferred min/max values for the element.
LayoutTests:
* TestExpectations: Remove three WPT tests that now pass.
* platform/glib/TestExpectations: Remove one WPT test that now passes.
* platform/gtk/imported/w3c/web-platform-tests/css/css-flexbox/flex-item-contains-strict-expected.txt: Added.
Canonical link: https://commits.webkit.org/237008@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@276572 268f45cc-cd09-0410-ab3c-d52691b4dbfc
0 commit comments