postcss-calc icon indicating copy to clipboard operation
postcss-calc copied to clipboard

broken example

Open alexander-akait opened this issue 5 years ago • 3 comments

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

Ref: https://github.com/cssnano/cssnano/issues/949

alexander-akait avatar Sep 03 '20 15:09 alexander-akait

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

alexander-akait avatar Jan 10 '22 10:01 alexander-akait

@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.

ludofischer avatar Jan 10 '22 11:01 ludofischer

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

alexander-akait avatar Jan 10 '22 11:01 alexander-akait