Months of work to build the tokenizers, parsers, helper functions for all the color conversions (🙇
@ant_laguna ), calc resolvers, ...
But we are finally at a point where we can throw crazy stuff like this at
@PostCSS and get back the exact same result as Chrome.
ALT A very complex example of the color mix function in CSS
Source :
.complex {
color: color-mix(
in lch,
purple calc(100% * sin(0.1)),
color-mix(
in oklch,
#4fe calc(100% / 3),
color(
display-p3
calc(33% * 3)
calc(1 / 2) -0.1)
calc(100% / 3 * 2
)
) calc(20% + 4%)
);
}