diff options
author | Sam Atkins <atkinssj@gmail.com> | 2021-08-20 19:52:36 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-25 12:14:34 +0200 |
commit | b92a6d654296718fd3e49a7bf37fda3ade4263ed (patch) | |
tree | 1cf20a0734660184b3ea2f374e76e5a3ddb16b14 /Userland/Libraries/LibWeb/CSS/Parser | |
parent | 3296fd70b315c85b2cae8577f0170dfe3271a341 (diff) | |
download | serenity-b92a6d654296718fd3e49a7bf37fda3ade4263ed.zip |
LibWeb: Implement CSS `unset` builtin value
This is equivalent to `initial` or `inherit`, depending on if the
property is inherited by default.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Parser')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp index 33fcfdb547..0f4c91d823 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp +++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp @@ -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 {}; |