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/overflow.c | |
parent | 0997e85ec5f14bd0d6959b9201fcd3845b224747 (diff) | |
download | libcss-2504bb6f6414ae36c036a84d21f7821178dc58ee.tar.gz |
Parse: Nongenerated properties: Explicit defaults
Diffstat (limited to 'src/parse/properties/overflow.c')
-rw-r--r-- | src/parse/properties/overflow.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/parse/properties/overflow.c b/src/parse/properties/overflow.c index ca133ed..7bc1938 100644 --- a/src/parse/properties/overflow.c +++ b/src/parse/properties/overflow.c @@ -34,6 +34,7 @@ css_error css__parse_overflow(css_language *c, int orig_ctx = *ctx; css_error error1, error2 = CSS_OK; const css_token *token; + enum flag_value flag_value; bool match; token = parserutils_vector_iterate(vector, ctx); @@ -42,12 +43,12 @@ css_error css__parse_overflow(css_language *c, return CSS_INVALID; } - if ((lwc_string_caseless_isequal(token->idata, - c->strings[INHERIT], &match) == lwc_error_ok && - match)) { - error1 = css_stylesheet_style_inherit(result, + flag_value = get_css_flag_value(c, token); + + if (flag_value != FLAG_VALUE__NONE) { + error1 = css_stylesheet_style_flag_value(result, flag_value, CSS_PROP_OVERFLOW_X); - error2 = css_stylesheet_style_inherit(result, + error2 = css_stylesheet_style_flag_value(result, flag_value, CSS_PROP_OVERFLOW_Y); } else if ((lwc_string_caseless_isequal(token->idata, |