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/cue.c | |
parent | 0997e85ec5f14bd0d6959b9201fcd3845b224747 (diff) | |
download | libcss-2504bb6f6414ae36c036a84d21f7821178dc58ee.tar.gz libcss-2504bb6f6414ae36c036a84d21f7821178dc58ee.tar.bz2 |
Parse: Nongenerated properties: Explicit defaults
Diffstat (limited to 'src/parse/properties/cue.c')
-rw-r--r-- | src/parse/properties/cue.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/parse/properties/cue.c b/src/parse/properties/cue.c index eef10d1..98844bd 100644 --- a/src/parse/properties/cue.c +++ b/src/parse/properties/cue.c @@ -57,15 +57,23 @@ css_error css__parse_cue(css_language *c, error = css__parse_cue_after(c, vector, ctx, result); } else { /* second token - might be useful */ - if (is_css_inherit(c, token)) { - /* another inherit which is bogus */ + enum flag_value flag_value; + + flag_value = get_css_flag_value(c, token); + + if (flag_value != FLAG_VALUE__NONE) { + /* another generic property reset value + * which is bogus */ error = CSS_INVALID; } else { error = css__parse_cue_after(c, vector, ctx, result); if (error == CSS_OK) { /* second token parsed */ - if (is_css_inherit(c, first_token)) { - /* valid second token after inherit */ + flag_value = get_css_flag_value(c, first_token); + + if (flag_value != FLAG_VALUE__NONE) { + /* valid second token after + * generic property reset value */ error = CSS_INVALID; } } else { |