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

LibWeb: Include all floating descendants in BFC root's automatic height

Before this change, we were only considering floating boxes that were
immediate children of the BFC root.
This commit is contained in:
Andreas Kling 2022-09-09 23:56:55 +02:00
parent 005cd4e456
commit c9a7853fef
3 changed files with 13 additions and 11 deletions

View file

@ -705,6 +705,8 @@ void BlockFormattingContext::layout_floating_box(Box const& box, BlockContainer
} else if (box.computed_values().float_() == CSS::Float::Right) {
float_box(FloatSide::Right, m_right_floats);
}
m_state.get_mutable(root()).add_floating_descendant(box);
}
void BlockFormattingContext::layout_list_item_marker(ListItemBox const& list_item_box)