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

Media queries are not counted properly #8

Open
spaceninja opened this issue Feb 24, 2014 · 0 comments
Open

Media queries are not counted properly #8

spaceninja opened this issue Feb 24, 2014 · 0 comments

Comments

@spaceninja
Copy link

Here's a test case: http://codepen.io/anon/pen/GEcmx

The CSS file contains 4100 rules, and 4101 selectors. 100 of those rules are nested inside two media queries.

grunt-css-metrics gives the following result:

>> Total rules: 4003
>> Total selectors: 4001
>> Average selectors per rule: 1
>> File size: 136.76 KB
>> GZip size: 9.75 KB

Looks like grunt-css-metrics evaluates the media query as a rule, but not the contents of the media query.

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

1 participant