mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb: Check if block creates BFC even if all it's children are inline
Even if block has all children inline there need to be a check if it creates BFC because otherwise IFC will be looking in wrong parent BFC to calculate space used by floats.
This commit is contained in:
committed by
Andreas Kling
parent
108a8e4c88
commit
daece542f5
@@ -155,7 +155,8 @@ OwnPtr<FormattingContext> FormattingContext::create_independent_formatting_conte
|
||||
}
|
||||
|
||||
VERIFY(is_block_formatting_context());
|
||||
VERIFY(!child_box.children_are_inline());
|
||||
if (child_box.children_are_inline())
|
||||
return {};
|
||||
|
||||
// The child box is a block container that doesn't create its own BFC.
|
||||
// It will be formatted by this BFC.
|
||||
|
||||
Reference in New Issue
Block a user