diff options
author | Andreas Kling <kling@serenityos.org> | 2022-09-14 11:30:52 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-09-14 14:43:17 +0200 |
commit | c4050fe67530519187e985258f81edc78b345d49 (patch) | |
tree | ef28bbef2903875108095cea888e60246c1fe853 | |
parent | 55ad9591dfbc8896c48d3c85f5b74adced867213 (diff) | |
download | serenity-c4050fe67530519187e985258f81edc78b345d49.zip |
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.
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<StyleValue> Parser::parse_grid_track_sizes(Vector<ComponentValue> 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; |