From bca5cb262c018f38ea8c58175df344c7d2345148 Mon Sep 17 00:00:00 2001 From: meri Date: Thu, 17 Mar 2016 11:30:08 +0100 Subject: [PATCH] Added comment. --- .../less4j/core/compiler/expressions/ColorFunctions.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/github/sommeri/less4j/core/compiler/expressions/ColorFunctions.java b/src/main/java/com/github/sommeri/less4j/core/compiler/expressions/ColorFunctions.java index 03405896..aec1cde4 100644 --- a/src/main/java/com/github/sommeri/less4j/core/compiler/expressions/ColorFunctions.java +++ b/src/main/java/com/github/sommeri/less4j/core/compiler/expressions/ColorFunctions.java @@ -885,7 +885,12 @@ protected String getName() { } class Contrast extends CssNameClashMultiParameterFunction { - + // Return which of `color1` and `color2` has the greatest contrast with `color` + // according to the standard WCAG contrast ratio calculation. + // http://www.w3.org/TR/WCAG20/#contrast-ratiodef + // The threshold param is no longer used, in line with SASS. + // filter: contrast(3.2); + // should be kept as is, so check for color @Override public Expression evaluate(List splitParameters, ProblemsHandler problemsHandler, FunctionExpression call, Expression evaluatedParameter) { /*