diff options
author | Enver Balalic <balalic.enver@gmail.com> | 2022-03-30 19:50:57 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-30 21:16:47 +0200 |
commit | 8b4d09932aa0a8476bd29a4da31cca051a1b2948 (patch) | |
tree | 0034ba64367c2cde01742deb5df0a951ac9cd6d2 /Userland/Libraries/LibM | |
parent | 74d8e201eb7d325ca479fec1ca03e6ff93ca4892 (diff) | |
download | serenity-8b4d09932aa0a8476bd29a4da31cca051a1b2948.zip |
LibWeb: Fix sizing of flex child that has flex-basis 0
Before if an element didn't have a main min size we would clamp
it to a literal zero. If that element also had a flex-basis 0
it's width would end up being 0.
This patch adds a determine_min_main_size_of_child function that
will calculate the minimum main size for the box based on the
content of the box.
We use the result of that function now instead of clamping
the element main min size to 0.
This also adds one more box to the flex.html test page, which is
the same flex: 0 0 0 box but with flex-direction: column.
Diffstat (limited to 'Userland/Libraries/LibM')
0 files changed, 0 insertions, 0 deletions