mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +00:00
LibWeb: Don't crash on unimplemented CSS display type
If some page throws "display: ruby-text" or some such at us, let's just complain and carry on.
This commit is contained in:
parent
9c8da4374d
commit
475bac89e1
1 changed files with 2 additions and 1 deletions
|
@ -357,7 +357,8 @@ JS::GCPtr<Layout::Node> Element::create_layout_node_for_display_type(DOM::Docume
|
|||
if (display.is_flow_inside() || display.is_flow_root_inside())
|
||||
return document.heap().allocate_without_realm<Layout::BlockContainer>(document, element, move(style));
|
||||
|
||||
TODO();
|
||||
dbgln("FIXME: CSS display '{}' not implemented yet.", display.to_string().release_value_but_fixme_should_propagate_errors());
|
||||
return document.heap().allocate_without_realm<Layout::InlineNode>(document, element, move(style));
|
||||
}
|
||||
|
||||
CSS::CSSStyleDeclaration const* Element::inline_style() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue