We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The features at https://github.com/ericf/css-mediaquery/blob/master/index.js#L67-74 does not handle the following case (one or both expressions without an value) on the correct way:
mediaQuery.match('screen and (color)', { type : 'screen', color: 8 });
See http://www.w3.org/TR/css3-mediaqueries/#color
One possible approach might be this (@ericf, -1 and -1 returns true – but a specified cannot be negative, in general!?):
expValue = !isNaN(expValue) ? parseInt(expValue, 10) : value > 0 ? value : 1; value = !isNaN(value) ? parseInt(value, 10) : expValue > 0 ? expValue : 0;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The features at https://github.com/ericf/css-mediaquery/blob/master/index.js#L67-74
does not handle the following case (one or both expressions without an value) on the correct way:
See http://www.w3.org/TR/css3-mediaqueries/#color
One possible approach might be this (@ericf, -1 and -1 returns true – but a specified cannot be negative, in general!?):
The text was updated successfully, but these errors were encountered: