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.
This commit is contained in:
Andreas Kling 2020-05-28 12:43:46 +02:00
parent 3d09bac888
commit 0e777c0ac6
Notes: sideshowbarker 2024-07-19 06:02:30 +09:00

View File

@ -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)