Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generates incorrect AST when media query has no expressions #5

Closed
tilomitra opened this issue Jan 21, 2014 · 1 comment
Closed

Generates incorrect AST when media query has no expressions #5

tilomitra opened this issue Jan 21, 2014 · 1 comment

Comments

@tilomitra
Copy link
Contributor

I get an incorrect AST when I enter a media query without any expressions (basically anything of this format):

media_query: [[only | not]? <media_type> 

For example:

console.log(mediaquery.parse('not screen'));

/*
logs out
[ { inverse: false, type: 'all', expressions: [] } ]
*/

This should really be:

[ { inverse: true, type: 'screen', expressions: [] } ]
@ericf ericf closed this as completed in d1413c5 Jan 21, 2014
@ericf
Copy link
Owner

ericf commented Jan 21, 2014

This is up on npm @ v0.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants