diff --git a/lib/less/tree/rule.js b/lib/less/tree/rule.js index b2e5d243..876149f8 100644 --- a/lib/less/tree/rule.js +++ b/lib/less/tree/rule.js @@ -35,7 +35,7 @@ tree.Rule.prototype = { }, eval: function (env) { var strictMathBypass = false; - if (this.name === "font" && env.strictMath === false) { + if (this.name === "font" && !env.strictMath) { strictMathBypass = true; env.strictMath = true; } diff --git a/test/less-test.js b/test/less-test.js index 3bddf333..307e7d59 100644 --- a/test/less-test.js +++ b/test/less-test.js @@ -63,7 +63,7 @@ runTestSet({strictMath: true, dumpLineNumbers: 'all'}, "debug/", null, function(name) { return name + '-all'; }); runTestSet({strictMath: true, relativeUrls: false, rootpath: "folder (1)/"}, "static-urls/"); runTestSet({strictMath: true, compress: true}, "compression/"); -runTestSet({strictMath: false}, "legacy/"); +runTestSet({ }, "legacy/"); testNoOptions(); function globalReplacements(input, directory) {