Open arayutw opened 1 year ago
That would be a good feature, in all likelihood you would need to go into https://github.com/postcss/postcss-calc/blob/master/src/lib/reducer.js, and stect max()
or min()
when the node type is Function
. The only problem is if there is not enough information in the AST to do that, unfortunately the parser is generated by an unmaintained port of the Bison parser generator and is unwieldy to work with.
What should be improved?
I would like
min()
andmax()
to shrink similar tocalc()
. Within these functions, calculations can be performed without usingcalc()
. So, it would be helpful if they can also perform shrinking similar tocalc()
.Describe the solution you would like
=>
Possible alternatives
I would be happy to consider your request, even though it is unsolicited.
Additional context
No response
Are you willing to work on this?