Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update build/node-parserlib.js

MediaQuery mediaType and features needs to be joined trough "and".
Not a big issue but window.matchMedia reports the MediaQuery .text as invalid 
  • Loading branch information...
commit 74592d643f3c38a9804a5a5adacbcc83ef11dacf 1 parent 63fd3bf
@mirceapiturca mirceapiturca authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  build/node-parserlib.js
View
2  build/node-parserlib.js
@@ -1169,7 +1169,7 @@ MediaFeature.prototype.constructor = MediaFeature;
*/
function MediaQuery(modifier, mediaType, features, line, col){
- SyntaxUnit.call(this, (modifier ? modifier + " ": "") + (mediaType ? mediaType + " " : "") + features.join(" and "), line, col, Parser.MEDIA_QUERY_TYPE);
+ SyntaxUnit.call(this, (modifier ? modifier + " ": "") + (mediaType ? mediaType : "") + (mediaType && features.length > 0 ? " and " : "") + features.join(" and "), line, col, Parser.MEDIA_QUERY_TYPE);
/**
* The media modifier ("not" or "only")
Please sign in to comment.
Something went wrong with that request. Please try again.