From c4050fe67530519187e985258f81edc78b345d49 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 14 Sep 2022 11:30:52 +0200 Subject: [PATCH] LibWeb: Treat unimplemented grid-track-size syntax as "auto" for now Note that there's a FIXME just above the previous case. That applies to this workaround as well. --- Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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;