summaryrefslogtreecommitdiff
path: root/src/parse/properties/elevation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/properties/elevation.c')
-rw-r--r--src/parse/properties/elevation.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parse/properties/elevation.c b/src/parse/properties/elevation.c
index f3a48a4..0b5fdc4 100644
--- a/src/parse/properties/elevation.c
+++ b/src/parse/properties/elevation.c
@@ -98,17 +98,17 @@ css_error css__parse_elevation(css_language *c,
/* Valid angles lie between -90 and 90 degrees */
if (unit == UNIT_DEG) {
- if (length < FMULI(F_90, -1) || length > F_90) {
+ if (length < -F_90 || length > F_90) {
*ctx = orig_ctx;
return CSS_INVALID;
}
} else if (unit == UNIT_GRAD) {
- if (length < FMULI(F_100, -1) || length > F_100) {
+ if (length < -F_100 || length > F_100) {
*ctx = orig_ctx;
return CSS_INVALID;
}
} else if (unit == UNIT_RAD) {
- if (length < FMULI(F_PI_2, -1) || length > F_PI_2) {
+ if (length < -F_PI_2 || length > F_PI_2) {
*ctx = orig_ctx;
return CSS_INVALID;
}