postcss / postcss-calc

PostCSS plugin to reduce calc()
MIT License
212 stars 34 forks source link

max-content not supported? #112

Open lsimichael opened 3 years ago

lsimichael commented 3 years ago

This line does not compile, I think because it does not understand max-content keyword:

width: calc(max-content + (.5 * var(--global-button-padding-right, var(--global-button-padding-horizontal, 0px))));

alexander-akait commented 3 years ago

What is output?

Semigradsky commented 3 years ago

@lsimichael looks like you can't calc with an intrinsic unit and an extrinsic unit together (auto + 1rem, max-content * 2, etc)