3 ms·
I love how most recent CSS specs about color were done though a linear lens. When color functions like darken() were in the spec, the color math wasn't done in
by toastal 5y ago
I love how most recent CSS specs about color were done though a linear lens. When color functions like darken() were in the spec, the color math wasn't done in sRGB which explains why darken in Less and Sass often look bad and the CSS blur filter makes ugly muddy browns between blocks of color.
- Cullinet 5y agoI think the confusion arises from the css specs using absolute RGB values as opposed to values calculated within the sRGB color space designed by HP ETAL. The css spec has a rgb(function) for using sRGB values directly. Yes the function for handling srgb values is called "rgb()"...