Yeah, postcss-preset-env and IE cannot handle the case of dynamic variable values. We just have to wait for IE11 userbase to shrink even more.
Using a CSS in JS systems like styled components fix that issue by using regular JS variables. But that depends on your tech stack.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.