diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-08-13 16:23:56 +0100 |
---|---|---|
committer | Michael Drake <mdrake.unique@gmail.com> | 2022-08-29 13:49:20 +0100 |
commit | 2504bb6f6414ae36c036a84d21f7821178dc58ee (patch) | |
tree | 8c6573ae9fe6ebd8af7ff8eead85c387557a5c3b /src/parse/properties/font_family.c | |
parent | 0997e85ec5f14bd0d6959b9201fcd3845b224747 (diff) | |
download | libcss-2504bb6f6414ae36c036a84d21f7821178dc58ee.tar.gz libcss-2504bb6f6414ae36c036a84d21f7821178dc58ee.tar.bz2 |
Parse: Nongenerated properties: Explicit defaults
Diffstat (limited to 'src/parse/properties/font_family.c')
-rw-r--r-- | src/parse/properties/font_family.c | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/parse/properties/font_family.c b/src/parse/properties/font_family.c index 23c080b..b309f45 100644 --- a/src/parse/properties/font_family.c +++ b/src/parse/properties/font_family.c @@ -127,7 +127,30 @@ css_error css__parse_font_family(css_language *c, (lwc_string_caseless_isequal( token->idata, c->strings[INHERIT], &match) == lwc_error_ok && match)) { - error = css_stylesheet_style_inherit(result, CSS_PROP_FONT_FAMILY); + error = css_stylesheet_style_inherit(result, + CSS_PROP_FONT_FAMILY); + + } else if ((token->type == CSS_TOKEN_IDENT) && + (lwc_string_caseless_isequal( + token->idata, c->strings[INITIAL], + &match) == lwc_error_ok && match)) { + error = css_stylesheet_style_initial(result, + CSS_PROP_FONT_FAMILY); + + } else if ((token->type == CSS_TOKEN_IDENT) && + (lwc_string_caseless_isequal( + token->idata, c->strings[REVERT], + &match) == lwc_error_ok && match)) { + error = css_stylesheet_style_revert(result, + CSS_PROP_FONT_FAMILY); + + } else if ((token->type == CSS_TOKEN_IDENT) && + (lwc_string_caseless_isequal( + token->idata, c->strings[UNSET], + &match) == lwc_error_ok && match)) { + error = css_stylesheet_style_unset(result, + CSS_PROP_FONT_FAMILY); + } else { *ctx = orig_ctx; |