diff options
Diffstat (limited to 'src/parse')
-rw-r--r-- | src/parse/properties.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/parse/properties.c b/src/parse/properties.c index f7979ef..69ff9f9 100644 --- a/src/parse/properties.c +++ b/src/parse/properties.c @@ -3703,6 +3703,10 @@ css_error parse_max_height(css_language *c, if (unit & UNIT_ANGLE || unit & UNIT_TIME || unit & UNIT_FREQ) return CSS_INVALID; + /* Negative values are illegal */ + if (length < 0) + return CSS_INVALID; + value = MAX_HEIGHT_SET; } @@ -3829,6 +3833,10 @@ css_error parse_min_height(css_language *c, if (unit & UNIT_ANGLE || unit & UNIT_TIME || unit & UNIT_FREQ) return CSS_INVALID; + /* Negative values are illegal */ + if (length < 0) + return CSS_INVALID; + value = MIN_HEIGHT_SET; } |