mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
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:
parent
3d09bac888
commit
0e777c0ac6
Notes:
sideshowbarker
2024-07-19 06:02:30 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/0e777c0ac64
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue