mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 23:58:11 +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:
parent
108a8e4c88
commit
daece542f5
2 changed files with 6 additions and 6 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue