1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:48:10 +00:00

LibWeb: Implement CSS unset builtin value

This is equivalent to `initial` or `inherit`, depending on if the
property is inherited by default.
This commit is contained in:
Sam Atkins 2021-08-20 19:52:36 +01:00 committed by Andreas Kling
parent 3296fd70b3
commit b92a6d6542
3 changed files with 32 additions and 3 deletions

View file

@ -1407,7 +1407,9 @@ RefPtr<StyleValue> Parser::parse_builtin_value(ParsingContext const&, StyleCompo
return InheritStyleValue::the();
if (ident.equals_ignoring_case("initial"))
return InitialStyleValue::the();
// FIXME: Implement `unset` keyword
if (ident.equals_ignoring_case("unset"))
return UnsetStyleValue::the();
// FIXME: Implement `revert` and `revert-layer` keywords, from Cascade4 and Cascade5 respectively
}
return {};