mirror of
https://github.com/less/less.js.git
synced 2026-01-22 21:58:14 -05:00
fix alpha channel being ignored in operations
This commit is contained in:
@@ -61,7 +61,7 @@ tree.Color.prototype = {
|
||||
for (var c = 0; c < 3; c++) {
|
||||
result[c] = tree.operate(op, this.rgb[c], other.rgb[c]);
|
||||
}
|
||||
return new(tree.Color)(result);
|
||||
return new(tree.Color)(result, this.alpha + other.alpha);
|
||||
},
|
||||
|
||||
toHSL: function () {
|
||||
|
||||
Reference in New Issue
Block a user