Skip to content

max-content not supported? #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lsimichael opened this issue Aug 7, 2020 · 3 comments
Closed

max-content not supported? #112

lsimichael opened this issue Aug 7, 2020 · 3 comments

Comments

@lsimichael
Copy link

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
Copy link
Collaborator

What is output?

@Semigradsky
Copy link
Member

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

@ludofischer
Copy link
Collaborator

Currently postcss-calc prints a warning for the input, which is correct since to use an intrinsic size like max-content you need to use the experimental calc-size() instead of calc(): https://developer.mozilla.org/en-US/docs/Web/CSS/calc-size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants