Skip to content
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

broken example #117

Open
alexander-akait opened this issue Sep 3, 2020 · 3 comments
Open

broken example #117

alexander-akait opened this issue Sep 3, 2020 · 3 comments
Labels
bad-parser postcss-calc fails to parse the input bug

Comments

@alexander-akait
Copy link
Collaborator

a {
  width: calc(min(max(var(--foo), 0), 100))
}

Ref: cssnano/cssnano#949

@alexander-akait
Copy link
Collaborator Author

@ludofischer We should support min/max/etc as top function too, i.e. width: max(100px, 200px)

@ludofischer
Copy link
Collaborator

@alexander-akait Do you mean max(100px, 200px) -> 200px. That would be an additional feature, right? I don't think it solves the current bug.

@alexander-akait
Copy link
Collaborator Author

Yes, it is feature, now we have more math in CSS, so will be great to support it too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bad-parser postcss-calc fails to parse the input bug
Projects
None yet
Development

No branches or pull requests

2 participants