diff options
author | Michael Drake <Michael Drake tlsa@netsurf-browser.org> | 2019-05-06 11:50:56 +0100 |
---|---|---|
committer | Michael Drake <Michael Drake tlsa@netsurf-browser.org> | 2019-05-06 11:50:56 +0100 |
commit | 42a03a31ea5f3b0ce1b77485906f545f7b21f09a (patch) | |
tree | 3a9952454a839495fef043d30a7b8ceb35364e41 | |
parent | 6bd1692ed84918f06afab3c5fc809fb47510da44 (diff) | |
download | libcss-42a03a31ea5f3b0ce1b77485906f545f7b21f09a.tar.gz libcss-42a03a31ea5f3b0ce1b77485906f545f7b21f09a.tar.bz2 |
Media queries: A query without a type defaults to type: all.
-rw-r--r-- | src/parse/mq.c | 8 |
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; } |