1
Fork 0
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:
Andreas Kling 2023-05-25 15:35:07 +02:00
parent 9c8da4374d
commit 475bac89e1

View file

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