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.
postcss-preset-env
Using a CSS in JS systems like styled components fix that issue by using regular JS variables. But that depends on your tech stack.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.