diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2018-07-30 13:44:00 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2019-03-10 13:42:03 +0000 |
commit | e3f8652f083435f6c51409c29ec5a41acaca0c70 (patch) | |
tree | 1b61ffbe677ab0b3f1a488c9b9b7d49f98d95cf5 /src | |
parent | 3a5b9a97c45580e938396b46567af580a7e8048e (diff) | |
download | libcss-e3f8652f083435f6c51409c29ec5a41acaca0c70.tar.gz libcss-e3f8652f083435f6c51409c29ec5a41acaca0c70.tar.bz2 |
Media Queries: Update stylesheet import for media query lists.
Diffstat (limited to 'src')
-rw-r--r-- | src/select/select.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/select/select.c b/src/select/select.c index 644369a..480b9f5 100644 --- a/src/select/select.c +++ b/src/select/select.c @@ -1847,7 +1847,8 @@ css_error select_from_sheet(css_select_ctx *ctx, const css_stylesheet *sheet, (const css_rule_import *) rule; if (import->sheet != NULL && - (import->media & state->media) != 0) { + mq__list_match(import->media, + state->media)) { /* It's applicable, so process it */ if (sp >= IMPORT_STACK_SIZE) return CSS_NOMEM; @@ -1954,7 +1955,8 @@ static css_error select_font_faces_from_sheet( (const css_rule_import *) rule; if (import->sheet != NULL && - (import->media & state->media) != 0) { + mq__list_match(import->media, + state->media)) { /* It's applicable, so process it */ if (sp >= IMPORT_STACK_SIZE) return CSS_NOMEM; |