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:
parent
5ff1fc4347
commit
b9a45cf1aa
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue