From 025d3b49abe7a02a9addbff041303b1b48ec7912 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 19 Oct 2019 19:02:02 +0200 Subject: [PATCH] LibHTML: Make "display: inline-block" generate a LayoutBlock for now We're gonna need some more smarts for this, but this at least gives us something instead of an assertion. --- Libraries/LibHTML/DOM/Element.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/LibHTML/DOM/Element.cpp b/Libraries/LibHTML/DOM/Element.cpp index c93536104b..fefde6a4a8 100644 --- a/Libraries/LibHTML/DOM/Element.cpp +++ b/Libraries/LibHTML/DOM/Element.cpp @@ -94,6 +94,8 @@ RefPtr Element::create_layout_node(const StyleProperties* parent_sty return adopt(*new LayoutTableRow(*this, move(style))); if (display == "table-cell") return adopt(*new LayoutTableCell(*this, move(style))); + if (display == "inline-block") + return adopt(*new LayoutBlock(this, move(style))); ASSERT_NOT_REACHED(); }