summaryrefslogtreecommitdiff
path: root/src/parse/language.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/language.c')
-rw-r--r--src/parse/language.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/parse/language.c b/src/parse/language.c
index e072971..fff0eff 100644
--- a/src/parse/language.c
+++ b/src/parse/language.c
@@ -737,7 +737,7 @@ css_error parseMediaList(css_language *c,
} else if (lwc_context_string_caseless_isequal(
c->sheet->dictionary,
token->idata, c->strings[BRAILLE],
- &match) == lwc_error_ok && match) {
+ &match) == lwc_error_ok && match) {
ret |= CSS_MEDIA_BRAILLE;
} else if (lwc_context_string_caseless_isequal(
c->sheet->dictionary,
@@ -796,6 +796,11 @@ css_error parseMediaList(css_language *c,
consumeWhitespace(vector, ctx);
}
+ /* If, after parsing the media list, we still have no media,
+ * then it must be ALL. */
+ if (ret == 0)
+ ret = CSS_MEDIA_ALL;
+
*media = ret;
return CSS_OK;