mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb: Make flex-box ignore out-of-flow child boxes
Previously, out-of-flow children still took up space inside a flex-box container, leaving an odd gap. Now they don't! :^)
This commit is contained in:
committed by
Andreas Kling
parent
2844f89a83
commit
ee671a20cc
@@ -238,6 +238,10 @@ void FlexFormattingContext::run(Box& box, LayoutMode)
|
||||
return IterationDecision::Continue;
|
||||
}
|
||||
|
||||
// Skip any "out-of-flow" children
|
||||
if (child_box.is_out_of_flow(*this))
|
||||
return IterationDecision::Continue;
|
||||
|
||||
child_box.set_flex_item(true);
|
||||
flex_items.append({ child_box });
|
||||
return IterationDecision::Continue;
|
||||
|
||||
Reference in New Issue
Block a user