Reverts operations not being performed in media queries

This commit is contained in:
Matthew Dean
2018-07-06 08:51:43 -07:00
parent c20e8ce51a
commit c66842f6be
3 changed files with 3 additions and 4 deletions

View File

@@ -1645,7 +1645,7 @@ var Parser = function Parser(context, imports, fileInfo) {
nodes.push(e);
} else if (parserInput.$char('(')) {
p = this.property();
e = this.permissiveValue(')');
e = this.value();
if (parserInput.$char(')')) {
if (p && e) {
nodes.push(new(tree.Paren)(new(tree.Declaration)(p, e, null, null, parserInput.i, fileInfo, true)));

View File

@@ -216,7 +216,7 @@ body {
var: all-and-tv;
}
}
@media screen and (min-width: (60px + 1)) {
@media screen and (min-width: 61px) {
.selector {
foo: bar;
}

View File

@@ -23,7 +23,7 @@
@ratio_large: 16;
@ratio_small: 9;
@media all and (device-aspect-ratio: @ratio_large / @ratio_small) {
@media all and (device-aspect-ratio: ~'@{ratio_large} / @{ratio_small}') {
body { max-width: 800px; }
}
@@ -233,7 +233,6 @@ body {
}
}
// Change in behavior of media queries in 3.5+ - inline expressions not eval'd
@some-var: 60px;
@media screen and (min-width: (@some-var + 1)) {
.selector {