mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
round numbers on color operations
This commit is contained in:
@@ -18,7 +18,7 @@ node.Color.prototype = {
|
||||
eval: function () { return this },
|
||||
toCSS: function () {
|
||||
return '#' + this.value.map(function (i) {
|
||||
return i.toString(16);
|
||||
return Math.round(i).toString(16);
|
||||
}).join('');
|
||||
},
|
||||
'+': function (other) {
|
||||
|
||||
Reference in New Issue
Block a user