From 0e777c0ac64e4cd0c3945ec95ddcb2a5944ec430 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 28 May 2020 12:43:46 +0200 Subject: LibWeb: Fall back to block layout for unimplemented CSS display values This seems to have a higher chance of generating somewhat recognizable content compared to inline layout. This problem will gradually go away as we implement more display values. --- Libraries/LibWeb/DOM/Element.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Libraries/LibWeb') diff --git a/Libraries/LibWeb/DOM/Element.cpp b/Libraries/LibWeb/DOM/Element.cpp index 6b546b97c3..24ddcfa793 100644 --- a/Libraries/LibWeb/DOM/Element.cpp +++ b/Libraries/LibWeb/DOM/Element.cpp @@ -133,7 +133,7 @@ RefPtr Element::create_layout_node(const StyleProperties* parent_sty } dbg() << "Unknown display type: _" << display << "_"; - return adopt(*new LayoutInline(*this, move(style))); + return adopt(*new LayoutBlock(this, move(style))); } void Element::parse_attribute(const FlyString& name, const String& value) -- cgit v1.2.3