diff options
-rw-r--r-- | src/parse/properties.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parse/properties.c b/src/parse/properties.c index b646ecf..b6ace4a 100644 --- a/src/parse/properties.c +++ b/src/parse/properties.c @@ -3249,6 +3249,10 @@ css_error parse_height(css_language *c, if (unit & UNIT_ANGLE || unit & UNIT_TIME || unit & UNIT_FREQ) return CSS_INVALID; + /* Negative height is illegal */ + if (length < 0) + return CSS_INVALID; + value = HEIGHT_SET; } |