summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parse/properties.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parse/properties.c b/src/parse/properties.c
index e3133c1..239947c 100644
--- a/src/parse/properties.c
+++ b/src/parse/properties.c
@@ -7079,6 +7079,10 @@ css_error parse_padding_side(css_language *c,
if (unit & UNIT_ANGLE || unit & UNIT_TIME || unit & UNIT_FREQ)
return CSS_INVALID;
+ /* Negative lengths are invalid */
+ if (length < 0)
+ return CSS_INVALID;
+
value = PADDING_SET;
}