From 63aa39987380cefd26624891eb359ddbc4d15472 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 10 Nov 2021 13:47:09 +0000 Subject: [PATCH] LibWeb: Allow `none` value for `transform` property This is the initial value for `transform`. We already handle the value later, we just were not parsing it. --- Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp index b370c7da8e..314660fbdf 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp +++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp @@ -3438,6 +3438,12 @@ RefPtr Parser::parse_transform_value(ParsingContext const& context, NonnullRefPtrVector transformations; for (auto& part : component_values) { + if (part.is(Token::Type::Ident) && part.token().ident().equals_ignoring_case("none")) { + if (!transformations.is_empty()) + return nullptr; + return IdentifierStyleValue::create(ValueID::None); + } + if (!part.is_function()) return nullptr; auto maybe_function = parse_transform_function_name(part.function().name());