summaryrefslogtreecommitdiff
path: root/src/parse
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse')
-rw-r--r--src/parse/mq.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/parse/mq.c b/src/parse/mq.c
index 9600eb4..799edf7 100644
--- a/src/parse/mq.c
+++ b/src/parse/mq.c
@@ -997,8 +997,7 @@ static css_error mq_parse_media_query(lwc_string **strings,
return error;
}
- *query = result;
- return CSS_OK;
+ goto finished;
}
token = parserutils_vector_iterate(vector, ctx);
@@ -1047,6 +1046,11 @@ static css_error mq_parse_media_query(lwc_string **strings,
}
}
+finished:
+ if (result->type == 0) {
+ result->type = CSS_MEDIA_ALL;
+ }
+
*query = result;
return CSS_OK;
}