diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-08-05 21:42:59 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-08-05 21:42:59 +0000 |
commit | eca9bc332412e5ca64cc6b7b788ac4dbfe470952 (patch) | |
tree | 659f43749e3ff87f3576735243d1528b4c553274 /src/parse/css21.c | |
parent | 99a2e8f808a83eb80925b5e88fc1438883be05d7 (diff) | |
download | libcss-eca9bc332412e5ca64cc6b7b788ac4dbfe470952.tar.gz libcss-eca9bc332412e5ca64cc6b7b788ac4dbfe470952.tar.bz2 |
Disable @media and @page -- I'd rather focus on non-nested blocks in the first instance.
svn path=/trunk/libcss/; revision=4922
Diffstat (limited to 'src/parse/css21.c')
-rw-r--r-- | src/parse/css21.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/parse/css21.c b/src/parse/css21.c index 40a728b..e9f854c 100644 --- a/src/parse/css21.c +++ b/src/parse/css21.c @@ -361,10 +361,15 @@ css_error handleStartAtRule(css_css21 *c, const parserutils_vector *vector) } else { return CSS_INVALID; } +#if 0 + /** \todo these depend on nested block support, so we'll disable them + * until we have such a thing. This means that we'll ignore the entire + * at-rule until then */ } else if (atkeyword->lower.ptr == c->strings[MEDIA]) { /** \todo any0 = IDENT ws (',' ws IDENT ws)* */ } else if (atkeyword->lower.ptr == c->strings[PAGE]) { /** \todo any0 = (':' IDENT)? ws */ +#endif } else { return CSS_INVALID; } @@ -431,6 +436,8 @@ css_error handleBlockContent(css_css21 *c, const parserutils_vector *vector) * current block is associated with @page or a selector), or rulesets * (if the current block is associated with @media). */ + /** \todo implement nested blocks */ + return CSS_OK; } |