summaryrefslogtreecommitdiff
path: root/src/parse
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse')
-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 d7b913d..b3c9c1c 100644
--- a/src/parse/properties.c
+++ b/src/parse/properties.c
@@ -6858,6 +6858,10 @@ css_error parse_border_side_width(css_language *c,
unit & UNIT_TIME || unit & UNIT_FREQ)
return CSS_INVALID;
+ /* Length must be positive */
+ if (length < 0)
+ return CSS_INVALID;
+
value = BORDER_WIDTH_SET;
}