diff options
Diffstat (limited to 'src/parse/properties/quotes.c')
-rw-r--r-- | src/parse/properties/quotes.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/parse/properties/quotes.c b/src/parse/properties/quotes.c index 9d3c4c9..b71158f 100644 --- a/src/parse/properties/quotes.c +++ b/src/parse/properties/quotes.c @@ -34,6 +34,7 @@ css_error css__parse_quotes(css_language *c, int orig_ctx = *ctx; css_error error = CSS_INVALID; const css_token *token; + enum flag_value flag_value; bool match; /* [ STRING STRING ]+ | IDENT(none,inherit) */ @@ -45,11 +46,12 @@ css_error css__parse_quotes(css_language *c, return CSS_INVALID; } - if ((token->type == CSS_TOKEN_IDENT) && - (lwc_string_caseless_isequal(token->idata, - c->strings[INHERIT], - &match) == lwc_error_ok && match)) { - error = css_stylesheet_style_inherit(result, CSS_PROP_QUOTES); + flag_value = get_css_flag_value(c, token); + + if (flag_value != FLAG_VALUE__NONE) { + error = css_stylesheet_style_flag_value(result, flag_value, + CSS_PROP_QUOTES); + } else if ((token->type == CSS_TOKEN_IDENT) && (lwc_string_caseless_isequal(token->idata, c->strings[NONE], |