mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:28:11 +00:00
LibWeb: Fix "Unsupported main size for flex-basis" spam about calc()
For flex items with a calc() value for a main size, we can just convert them to a calculation-backed LengthPercentage.
This commit is contained in:
parent
82aedfcaf0
commit
e3d182bfe2
1 changed files with 3 additions and 1 deletions
|
@ -555,9 +555,11 @@ CSS::FlexBasisData FlexFormattingContext::used_flex_basis_for_item(FlexItem cons
|
|||
flex_basis.length_percentage = main_size.length();
|
||||
} else if (main_size.is_percentage()) {
|
||||
flex_basis.length_percentage = main_size.percentage();
|
||||
} else if (main_size.is_calculated()) {
|
||||
flex_basis.length_percentage = CSS::LengthPercentage { main_size.calculated() };
|
||||
} else {
|
||||
// FIXME: Support other size values!
|
||||
dbgln("FIXME: Unsupported main size for flex-basis!");
|
||||
dbgln("FIXME: Unsupported main size for flex-basis: {}", main_size);
|
||||
flex_basis.type = CSS::FlexBasis::Content;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue