Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Fix edge case converting achromatic colors to HSL
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter authored and xzyfer committed Mar 23, 2018
1 parent b0077d6 commit 2807587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ namespace Sass {
double s;
double l = (max + min) / 2.0;

if (max == min) {
if (NEAR_EQUAL(max, min)) {
h = s = 0; // achromatic
}
else {
Expand Down

0 comments on commit 2807587

Please sign in to comment.