From 75d603c31b632c381ae1c1946d1b91545cc405a1 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 1 May 2023 11:23:40 +0200 Subject: [PATCH] LibWeb: Support getting the grid-template-areas from resolved style Without this, we crash when opening the DOM inspector. --- Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp b/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp index fe34f9505b..6dfffd117c 100644 --- a/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp +++ b/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp @@ -509,6 +509,8 @@ RefPtr ResolvedCSSStyleDeclaration::style_value_for_property(L return GridTrackSizeListStyleValue::create(layout_node.computed_values().grid_template_columns()); case CSS::PropertyID::GridTemplateRows: return GridTrackSizeListStyleValue::create(layout_node.computed_values().grid_template_rows()); + case CSS::PropertyID::GridTemplateAreas: + return GridTemplateAreaStyleValue::create(layout_node.computed_values().grid_template_areas()); case CSS::PropertyID::Height: return style_value_for_size(layout_node.computed_values().height()); case CSS::PropertyID::ImageRendering: