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 00fce82..2a5cbef 100644
--- a/src/parse/properties.c
+++ b/src/parse/properties.c
@@ -4485,6 +4485,10 @@ css_error parse_pitch_range(css_language *c,
if (consumed != token->ilower->len)
return CSS_INVALID;
+ /* Must be between 0 and 100 */
+ if (num < 0 || num > F_100)
+ return CSS_INVALID;
+
value = PITCH_RANGE_SET;
} else
return CSS_INVALID;