diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp index 3d3f90b91b..000e750013 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.cpp +++ b/Userland/Libraries/LibWeb/DOM/Element.cpp @@ -308,7 +308,8 @@ RefPtr Element::create_layout_node_for_display_type(DOM::Document& return adopt_ref(*new Layout::BlockContainer(document, element, move(style))); if (display.is_flow_inside()) return adopt_ref(*new Layout::InlineNode(document, element, move(style))); - + if (display.is_flex_inside()) + return adopt_ref(*new Layout::BlockContainer(document, element, move(style))); dbgln_if(LIBWEB_CSS_DEBUG, "FIXME: Support display: {}", display.to_string()); return adopt_ref(*new Layout::InlineNode(document, element, move(style))); }