summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2018-06-08 14:55:48 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2019-03-10 13:42:03 +0000
commit55c0ff7fb7faa1383f5fbda7261d7e1be6249220 (patch)
tree9d77ed82af33c2856969c2378f544f9bd431974a
parent55c5cb22e615ed91098a5ace3de29e17c5dc509b (diff)
downloadlibcss-55c0ff7fb7faa1383f5fbda7261d7e1be6249220.tar.gz
libcss-55c0ff7fb7faa1383f5fbda7261d7e1be6249220.tar.bz2
Media Queries: Fix range parsing.
-rw-r--r--src/parse/mq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/mq.c b/src/parse/mq.c
index ffddf64..8f4391b 100644
--- a/src/parse/mq.c
+++ b/src/parse/mq.c
@@ -227,7 +227,7 @@ static css_error mq_parse_range(css_language *c,
if (name_or_value->type == CSS_TOKEN_NUMBER &&
tokenIsChar(parserutils_vector_peek(vector, *ctx), '/')) {
/* ratio */
- error = mq_parse_ratio(vector, ctx, token, &ratio);
+ error = mq_parse_ratio(vector, ctx, name_or_value, &ratio);
if (error != CSS_OK) {
return error;
}