mirror of
https://github.com/less/less.js.git
synced 2026-01-22 21:58:14 -05:00
if strict units are off also use the denominator, if there is no numerator. Fixes #2418
This commit is contained in:
@@ -23,6 +23,8 @@ Unit.prototype.genCSS = function (context, output) {
|
||||
output.add(this.numerator[0]); // the ideal situation
|
||||
} else if (!strictUnits && this.backupUnit) {
|
||||
output.add(this.backupUnit);
|
||||
} else if (!strictUnits && this.denominator.length) {
|
||||
output.add(this.denominator[0]);
|
||||
}
|
||||
};
|
||||
Unit.prototype.toString = function () {
|
||||
|
||||
Reference in New Issue
Block a user