diff --git a/Libraries/LibWeb/DOM/Element.cpp b/Libraries/LibWeb/DOM/Element.cpp index 79a376b6851..e4edead76c3 100644 --- a/Libraries/LibWeb/DOM/Element.cpp +++ b/Libraries/LibWeb/DOM/Element.cpp @@ -461,6 +461,11 @@ GC::Ptr Element::create_layout_node_for_display_type(DOM: return document.heap().allocate(document, element, move(style)); dbgln("FIXME: CSS display '{}' not implemented yet.", display.to_string()); + + // FIXME: We don't actually support `display: block ruby`, this is just a hack to prevent a crash + if (display.is_ruby_inside()) + return document.heap().allocate(document, element, move(style)); + return document.heap().allocate(document, element, move(style)); }