diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-28 12:43:46 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-28 12:44:34 +0200 |
commit | 0e777c0ac64e4cd0c3945ec95ddcb2a5944ec430 (patch) | |
tree | b4df0b12422d0488fc43cb698211cb1962f524af /Libraries/LibWeb | |
parent | 3d09bac88832001f87a435391c893fdb2e6a148f (diff) | |
download | serenity-0e777c0ac64e4cd0c3945ec95ddcb2a5944ec430.zip |
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.
Diffstat (limited to 'Libraries/LibWeb')
-rw-r--r-- | Libraries/LibWeb/DOM/Element.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<LayoutNode> 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) |