css-property-parser icon indicating copy to clipboard operation
css-property-parser copied to clipboard

feature request: property aware normalization

Open chriseppstein opened this issue 8 years ago • 1 comments
trafficstars

It would be really useful to have a way to normalize values for properties. This would include doing unit conversions, string case conversion, and whitespace normalization in such a way that two values that are always equivalent in the browser are the same string value.

This would probably precipitate a property aware value ast and stringifier.

chriseppstein avatar Oct 26 '17 22:10 chriseppstein

As noted in the original opticss issue, postcss-colormin, or really just colormin, already handles this for the color property. While normalizing all values would be great, color is a particularly useful property to normalize with it's many different ways of defining the same thing.

soluml avatar May 08 '18 14:05 soluml