diff options
Diffstat (limited to 'src/parse/properties.c')
-rw-r--r-- | src/parse/properties.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/parse/properties.c b/src/parse/properties.c index 4670934..ff7460a 100644 --- a/src/parse/properties.c +++ b/src/parse/properties.c @@ -1810,7 +1810,7 @@ css_error parse_counter_reset(css_language *c, while (token != NULL) { const parserutils_hash_entry *name = token->idata; - fixed increment = INTTOFIX(1); + fixed increment = INTTOFIX(0); consumeWhitespace(vector, &temp_ctx); @@ -1849,6 +1849,8 @@ css_error parse_counter_reset(css_language *c, first = false; token = parserutils_vector_iterate(vector, &temp_ctx); + if (token != NULL && token->type != CSS_TOKEN_IDENT) + return CSS_INVALID; } /* And for the terminator */ @@ -1886,7 +1888,7 @@ css_error parse_counter_reset(css_language *c, while (token != NULL) { const parserutils_hash_entry *name = token->idata; - fixed increment = INTTOFIX(1); + fixed increment = INTTOFIX(0); consumeWhitespace(vector, ctx); @@ -1929,6 +1931,8 @@ css_error parse_counter_reset(css_language *c, first = false; token = parserutils_vector_iterate(vector, ctx); + if (token != NULL && token->type != CSS_TOKEN_IDENT) + return CSS_INVALID; } /* And for the terminator */ |