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:
parent
3296fd70b3
commit
b92a6d6542
3 changed files with 32 additions and 3 deletions
|
@ -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 {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue