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> | 2018-08-01 16:02:13 +0100 |
commit | 2e50ebe6fb3ece6c33d648ca3e222524d79c3999 (patch) | |
tree | b8c9e1acab9321a741ea1217792dfe1c06f404c7 /src/parse/parse.h | |
parent | 4c6f9d0ee83cfe66bbb7156492aa7cb5f00e5a64 (diff) | |
download | libcss-2e50ebe6fb3ece6c33d648ca3e222524d79c3999.tar.gz libcss-2e50ebe6fb3ece6c33d648ca3e222524d79c3999.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, |