From bc33e6bfbebf3e04576f752d64297d5e67fe84d3 Mon Sep 17 00:00:00 2001 From: Luke Page Date: Sat, 20 Jul 2013 14:49:15 +0100 Subject: [PATCH] fix regression in support for font property. fixes #1429 --- lib/less/tree/rule.js | 2 +- test/less-test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {