From 521e19444c2244f4240ca69be44040b47d91a303 Mon Sep 17 00:00:00 2001 From: martinfalisse Date: Sat, 24 Sep 2022 19:23:29 +0200 Subject: [PATCH] LibWeb: Make CSS Grid work again Fixes bug after the automatic_content_height() changes where the height of the grid container was not being calculated correctly. --- Userland/Libraries/LibWeb/Layout/FormattingContext.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp index 4124d85347..c81c07cffe 100644 --- a/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp @@ -259,8 +259,6 @@ float FormattingContext::compute_auto_height_for_block_level_element(LayoutState auto display = box.computed_values().display(); if (display.is_flex_inside()) return box_state.content_height(); - if (display.is_grid_inside()) - return box_state.content_height(); // https://www.w3.org/TR/CSS22/visudet.html#normal-block // 10.6.3 Block-level non-replaced elements in normal flow when 'overflow' computes to 'visible'