From 493cbb79560b71eaf9c1c99960de59edf479bf16 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 5 May 2020 13:17:31 +0200 Subject: [PATCH] LibWeb: Fall back to LayoutInline for any unrecognized CSS display Let's at least try to keep going and see what we can render. --- Libraries/LibWeb/DOM/Element.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Libraries/LibWeb/DOM/Element.cpp b/Libraries/LibWeb/DOM/Element.cpp index 3f5e93be41..c439e5c7d6 100644 --- a/Libraries/LibWeb/DOM/Element.cpp +++ b/Libraries/LibWeb/DOM/Element.cpp @@ -133,7 +133,8 @@ RefPtr Element::create_layout_node(const StyleProperties* parent_sty if (display == "inline-block") return adopt(*new LayoutBlock(this, move(style))); - ASSERT_NOT_REACHED(); + dbg() << "Unknown display type: _" << display << "_"; + return adopt(*new LayoutInline(*this, move(style))); } void Element::parse_attribute(const FlyString&, const String&)