diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp index bd40713ae8..5102a187a6 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp +++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp @@ -5325,6 +5325,10 @@ RefPtr Parser::parse_grid_track_sizes(Vector const& params.append(Length::make_auto()); continue; } + if (component_value.is_block()) { + params.append(Length::make_auto()); + continue; + } if (component_value.is(Token::Type::Ident) && component_value.token().ident().equals_ignoring_case("auto"sv)) { params.append(Length::make_auto()); continue;