Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/royels/stylus into 1567
Browse files Browse the repository at this point in the history
  • Loading branch information
royels committed May 9, 2016
2 parents 81d8659 + fa751d1 commit 83c410b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/functions/transparentify.js
Expand Up @@ -36,7 +36,7 @@ module.exports = function transparentify(top, bottom, alpha){
bottom = bottom.rgba;
var bestAlpha = ['r', 'g', 'b'].map(function(channel){
return (top[channel] - bottom[channel]) / ((0 < (top[channel] - bottom[channel]) ? 255 : 0) - bottom[channel]);
}).sort(function(a, b){return a < b;})[0];
}).sort(function(a, b){return b - a;})[0];
if (alpha) {
utils.assertType(alpha, 'unit', 'alpha');
if ('%' == alpha.type) {
Expand Down

0 comments on commit 83c410b

Please sign in to comment.