From 21e1e91b4b55286bba88561b9455f2a53aefb209 Mon Sep 17 00:00:00 2001 From: Synchro Date: Tue, 17 Dec 2013 09:17:00 +0100 Subject: [PATCH] Remove alpha from contrast calc, see #1724 --- lib/less/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/less/functions.js b/lib/less/functions.js index 23d5ee5e5..95d24d7ba 100644 --- a/lib/less/functions.js +++ b/lib/less/functions.js @@ -206,7 +206,7 @@ tree.functions = { } else { threshold = number(threshold); } - if ((color.luma() * color.alpha) < threshold) { + if (color.luma() < threshold) { return light; } else { return dark;