summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-01-24 14:29:35 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-01-24 14:29:35 +0000
commitb3cc602f513971966d3a289a118ae5f66cc3d66b (patch)
treeb504d4933437e7da36697c38308f0a9f2f80b225
parentffea6dae5dbec447b0b62ddbbeb5b06df15145b0 (diff)
downloadlibcss-b3cc602f513971966d3a289a118ae5f66cc3d66b.tar.gz
libcss-b3cc602f513971966d3a289a118ae5f66cc3d66b.tar.bz2
Make pause-after and pause-before treat negative values as illegal
svn path=/trunk/libcss/; revision=6239
-rw-r--r--src/parse/properties.c8
1 files changed, 8 insertions, 0 deletions
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;
}