From b3cc602f513971966d3a289a118ae5f66cc3d66b Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 24 Jan 2009 14:29:35 +0000 Subject: Make pause-after and pause-before treat negative values as illegal svn path=/trunk/libcss/; revision=6239 --- src/parse/properties.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/parse/properties.c b/src/parse/properties.c index 239947c..00fce82 100644 --- a/src/parse/properties.c +++ b/src/parse/properties.c @@ -4353,6 +4353,10 @@ css_error parse_pause_after(css_language *c, if ((unit & UNIT_TIME) == false && (unit & UNIT_PCT) == false) return CSS_INVALID; + /* Negative values are illegal */ + if (length < 0) + return CSS_INVALID; + value = PAUSE_AFTER_SET; } @@ -4414,6 +4418,10 @@ css_error parse_pause_before(css_language *c, if ((unit & UNIT_TIME) == false && (unit & UNIT_PCT) == false) return CSS_INVALID; + /* Negative values are illegal */ + if (length < 0) + return CSS_INVALID; + value = PAUSE_BEFORE_SET; } -- cgit v1.2.3