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.
This commit is contained in:
parent
11f0ece58f
commit
63aa399873
Notes:
sideshowbarker
2024-07-18 01:18:30 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/63aa3998738 Pull-request: https://github.com/SerenityOS/serenity/pull/10862 Reviewed-by: https://github.com/awesomekling
1 changed files with 6 additions and 0 deletions
|
@ -3438,6 +3438,12 @@ RefPtr<StyleValue> Parser::parse_transform_value(ParsingContext const& context,
|
|||
NonnullRefPtrVector<StyleValue> 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());
|
||||
|
|
Loading…
Add table
Reference in a new issue