You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In using 'desaturate' on a color created with hsv(), I find the color that comes out is not what I expect. In the example below, I expect the values for "color" and "background-color" to be identical because the manual assembly of the new hsv() values in "background-color" should be exactly what desaturate() is supposed to be doing in "color". Perhaps Less is running desaturate() as hsl() instead of hsv()?
Yes, this is just because desaturate operates in the HSL domain (I guess we're missing this fact in the docs). There's no such thing as a HSL or a HSV color in Less. All Less colors are RGBA internally. See also #1853.
In using 'desaturate' on a color created with hsv(), I find the color that comes out is not what I expect. In the example below, I expect the values for "color" and "background-color" to be identical because the manual assembly of the new hsv() values in "background-color" should be exactly what desaturate() is supposed to be doing in "color". Perhaps Less is running desaturate() as hsl() instead of hsv()?
LESS:
OUTPUT CSS:
The text was updated successfully, but these errors were encountered: