1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:47:47 +00:00

LibWeb: Add auto as a recognized argument of flex-basis

There isn't actually any special treatment of this over 'content' in
the FlexFormattingContext, for now both are treated the same.
This fixes #9225
This commit is contained in:
Tobias Christiansen 2021-08-06 22:00:25 +02:00 committed by Andreas Kling
parent 6852ba4d34
commit 833936f3ec
4 changed files with 7 additions and 2 deletions

View file

@ -311,6 +311,7 @@ void FlexFormattingContext::run(Box& box, LayoutMode)
} else {
// E
// FIXME: This is probably too naive.
// FIXME: Care about FlexBasis::Auto
if (has_definite_main_size(child_box)) {
flex_item.flex_base_size = specified_main_size(child_box);
} else {