diff --git a/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp index 51e9ca1e89..1d255d5e71 100644 --- a/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp @@ -65,6 +65,8 @@ bool FormattingContext::creates_block_formatting_context(Box const& box) return true; if (is(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))