diff --git a/js/csslint/parserlib.js b/js/csslint/parserlib.js index 952952ad..0c4d9600 100644 --- a/js/csslint/parserlib.js +++ b/js/csslint/parserlib.js @@ -732,7 +732,6 @@ self.parserlib = (() => { 'hidden | dotted | dashed | solid | double | groove | ridge | inset | outset', '': ' | thin | medium | thick', '': 'padding-box | border-box | content-box', - '': ' | closest-side | farthest-side', '': '', '': 'normal | ', '': 'space-between | space-around | space-evenly | stretch', @@ -786,6 +785,7 @@ self.parserlib = (() => { '': p => vtIsLength(p) || vtIsPct(p), '': p => p.value >= 0 && (p.type === 'percentage' || vtIsLength(p)) || p.isCalc, + '': ' | closest-side | farthest-side', '': p => p.isInt, '': ' | | normal', '': p => @@ -3719,7 +3719,7 @@ self.parserlib = (() => { if (next.type === Tokens.IDENT) { type = this._mediaFeature(); } else if (next.value === '(') { - expressions.push(this._mediaExpression({or: true})); + expressions.push(this._mediaExpression()); } else { return; }