From 475bac89e1e4bcfdc1cc4f52de2881ddabe2f3e0 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 25 May 2023 15:35:07 +0200 Subject: [PATCH] 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. --- Userland/Libraries/LibWeb/DOM/Element.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp index 12b04b7dd1..d149cf6399 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.cpp +++ b/Userland/Libraries/LibWeb/DOM/Element.cpp @@ -357,7 +357,8 @@ JS::GCPtr 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(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(document, element, move(style)); } CSS::CSSStyleDeclaration const* Element::inline_style() const