postcss / postcss-calc

PostCSS plugin to reduce calc()
MIT License
215 stars 33 forks source link

Correctly handle summands that cancel out and pull out common factors #114

Closed mischnic closed 4 years ago

mischnic commented 4 years ago

Closes https://github.com/postcss/postcss-calc/issues/107

  1. Only remove the something in (expr + something) +- (expr - something) if it's actually addition and subtraction that cancel out.
  2. Pull out common factors in (expr * something) +- (expr * something) (for var expressions https://github.com/postcss/postcss-calc/issues/107#issuecomment-680747619 )
alexander-akait commented 4 years ago

@Semigradsky Can you do release? Don't have time on this right now :disappointed:

Semigradsky commented 4 years ago

No probs

Semigradsky commented 4 years ago

@evilebottnawi @mischnic https://github.com/postcss/postcss-calc/releases/tag/v7.0.4

mischnic commented 4 years ago

Thanks!