Comment on Too Much ColorComments−bhaak5moHe’s talking about minifying CSS colors and I’m not sure if it is what I think it is.Do CSS minifier really adjust the colors in the CSS files to get better compression rates or to reduce the number of rules in the CSS?−altairprime5moThe author’s minifier now does so, yes. I think you’d have to research further to decide if they’re the first to do so or not.−sheept5moIt depends on the minifier (SVG optimizers do this too), but yes, they may reduce the precision of colors. I checked and esbuild will turn lab() into a hex color if possible.
Comments
He’s talking about minifying CSS colors and I’m not sure if it is what I think it is.
Do CSS minifier really adjust the colors in the CSS files to get better compression rates or to reduce the number of rules in the CSS?
The author’s minifier now does so, yes. I think you’d have to research further to decide if they’re the first to do so or not.
It depends on the minifier (SVG optimizers do this too), but yes, they may reduce the precision of colors. I checked and esbuild will turn lab() into a hex color if possible.