Issue with using calc() inside rgb()?

Yeah but something is just ‘not’ implemented right here.

I mean just assume for a moment we ‘stay’ in ‘integer land’, just as Randell is suggesting.

In this case ‘this’ works:

background-color: rgb(120, 50, calc(50 * 2));

So without having to touch floating points at all, logically, this should also work:

background-color: rgb(120, 50, calc(50 * (2/1)));

But it doesn’t…

crawls back to his CPP :>

1 Like