mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:27:44 +00:00
LibWeb: Treat "flex-basis: 0px" like any other definite basis value
This commit is contained in:
parent
61c27815e4
commit
f7750985fa
1 changed files with 1 additions and 4 deletions
|
@ -581,10 +581,7 @@ void FlexFormattingContext::determine_flex_base_size_and_hypothetical_main_size(
|
||||||
|
|
||||||
// A. If the item has a definite used flex basis, that’s the flex base size.
|
// A. If the item has a definite used flex basis, that’s the flex base size.
|
||||||
if (used_flex_basis.is_definite()) {
|
if (used_flex_basis.is_definite()) {
|
||||||
auto specified_base_size = get_pixel_size(m_state, child_box, used_flex_basis.length_percentage.value());
|
return get_pixel_size(m_state, child_box, used_flex_basis.length_percentage.value());
|
||||||
if (specified_base_size == 0)
|
|
||||||
return calculated_main_size(flex_item.box);
|
|
||||||
return specified_base_size;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// B. If the flex item has ...
|
// B. If the flex item has ...
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue