Skip to content

Commit bc33e6b

Browse files
committed
fix regression in support for font property. fixes less#1429
1 parent 67bd5a2 commit bc33e6b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/less/tree/rule.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ tree.Rule.prototype = {
3535
},
3636
eval: function (env) {
3737
var strictMathBypass = false;
38-
if (this.name === "font" && env.strictMath === false) {
38+
if (this.name === "font" && !env.strictMath) {
3939
strictMathBypass = true;
4040
env.strictMath = true;
4141
}

test/less-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ runTestSet({strictMath: true, dumpLineNumbers: 'all'}, "debug/", null,
6363
function(name) { return name + '-all'; });
6464
runTestSet({strictMath: true, relativeUrls: false, rootpath: "folder (1)/"}, "static-urls/");
6565
runTestSet({strictMath: true, compress: true}, "compression/");
66-
runTestSet({strictMath: false}, "legacy/");
66+
runTestSet({ }, "legacy/");
6767
testNoOptions();
6868

6969
function globalReplacements(input, directory) {

0 commit comments

Comments
 (0)