LibWeb: Never claim that flex containers create a BFC

If a flex item is itself a flex container, we were previously lying when
asked if the item created a BFC. It creates an FFC, so stop lying about
this in FormattingContext::creates_block_formatting_context().
This commit is contained in:
Andreas Kling 2022-09-29 13:22:52 +02:00
parent 7c6e42c2d4
commit a0f3e2c9a2
Notes: sideshowbarker 2024-07-17 06:32:40 +09:00

View file

@ -65,6 +65,8 @@ bool FormattingContext::creates_block_formatting_context(Box const& box)
return true;
if (is<TableCellBox>(box))
return true;
if (box.computed_values().display().is_flex_inside())
return false;
CSS::Overflow overflow_x = box.computed_values().overflow_x();
if ((overflow_x != CSS::Overflow::Visible) && (overflow_x != CSS::Overflow::Clip))