1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

LibWeb: Don't try to layout inside of replaced elements in BFC

This commit is contained in:
Andreas Kling 2022-10-06 18:17:12 +02:00
parent 5ff1fc4347
commit b9a45cf1aa

View file

@ -377,7 +377,7 @@ void BlockFormattingContext::layout_block_level_box(Box const& box, BlockContain
}
OwnPtr<FormattingContext> independent_formatting_context;
if (box.can_have_children()) {
if (!box.is_replaced_box() && box.has_children()) {
if (box.children_are_inline()) {
layout_inline_children(verify_cast<BlockContainer>(box), layout_mode, box_state.available_inner_space_or_constraints_from(available_space));
} else {