diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2018-08-01 15:38:49 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2019-03-10 13:42:03 +0000 |
commit | 3342c8e3bafba86ff1154db940891a3405cb1c30 (patch) | |
tree | fb1b24398bbe01ee4932aecf86acfa1efa644d41 /src/parse/parse.h | |
parent | 9eea40513329fbd10d494f5a2d29664847043c4c (diff) | |
download | libcss-3342c8e3bafba86ff1154db940891a3405cb1c30.tar.gz libcss-3342c8e3bafba86ff1154db940891a3405cb1c30.tar.bz2 |
HACKS for testing Media Queries parsing.
Top level stylesheets need to have their media query passed in.
So we need a way to parse standalone media queries.
This was hacked together to explore doing that.
However, it encounteded an issue where it seems the parseAtRule()
function in src/parse/parse.c doesn't handle the full grammar for
media queries.
Diffstat (limited to 'src/parse/parse.h')
-rw-r--r-- | src/parse/parse.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parse/parse.h b/src/parse/parse.h index 833aa51..e65f055 100644 --- a/src/parse/parse.h +++ b/src/parse/parse.h @@ -61,6 +61,8 @@ css_error css__parser_create(const char *charset, css_charset_source cs_source, css_parser **parser); css_error css__parser_create_for_inline_style(const char *charset, css_charset_source cs_source, css_parser **parser); +css_error css__parser_create_for_media_query(const char *charset, + css_charset_source cs_source, css_parser **parser); css_error css__parser_destroy(css_parser *parser); css_error css__parser_setopt(css_parser *parser, css_parser_opttype type, |