summaryrefslogtreecommitdiff
path: root/src/parse/properties.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/properties.c')
-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 275ad91..b646ecf 100644
--- a/src/parse/properties.c
+++ b/src/parse/properties.c
@@ -3029,6 +3029,10 @@ css_error parse_font_size(css_language *c,
if (unit & UNIT_ANGLE || unit & UNIT_TIME || unit & UNIT_FREQ)
return CSS_INVALID;
+ /* Negative values are not permitted */
+ if (length < 0)
+ return CSS_INVALID;
+
value = FONT_SIZE_DIMENSION;
}