postcss-calc
postcss-calc copied to clipboard
broken example
a {
width: calc(min(max(var(--foo), 0), 100))
}
Ref: https://github.com/cssnano/cssnano/issues/949
@ludofischer We should support min/max/etc as top function too, i.e. width: max(100px, 200px)
@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.
Yes, it is feature, now we have more math in CSS, so will be great to support it too