mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:47:34 +00:00
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
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;
|
NonnullRefPtrVector<StyleValue> transformations;
|
||||||
|
|
||||||
for (auto& part : component_values) {
|
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())
|
if (!part.is_function())
|
||||||
return nullptr;
|
return nullptr;
|
||||||
auto maybe_function = parse_transform_function_name(part.function().name());
|
auto maybe_function = parse_transform_function_name(part.function().name());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue