diff options
Diffstat (limited to 'src/parse/properties/padding.c')
-rw-r--r-- | src/parse/properties/padding.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/parse/properties/padding.c b/src/parse/properties/padding.c index d018609..507159d 100644 --- a/src/parse/properties/padding.c +++ b/src/parse/properties/padding.c @@ -87,6 +87,14 @@ css_error parse_padding(css_language *c, prev_ctx = *ctx; error = CSS_OK; + /* Ensure that we're not about to parse another inherit */ + token = parserutils_vector_peek(vector, *ctx); + if (token != NULL && token->type == CSS_TOKEN_IDENT && + token->ilower == c->strings[INHERIT]) { + error = CSS_INVALID; + goto cleanup; + } + if (top == NULL && (error = parse_padding_side(c, vector, ctx, CSS_PROP_PADDING_TOP, &top)) == CSS_OK) { |