mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 23:30:20 +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:
parent
2844f89a83
commit
ee671a20cc
Notes:
sideshowbarker
2024-07-18 03:56:45 +09:00
Author: https://github.com/AtkinsSJ
Commit: ee671a20cc
Pull-request: https://github.com/SerenityOS/serenity/pull/10038
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue