peteboere / css-crush

CSS preprocessor.
http://the-echoplex.net/csscrush
MIT License
537 stars 51 forks source link

Fixed regular expression to only strip unnecessary units on zero values for length types #27

Closed lencioni closed 12 years ago

lencioni commented 12 years ago

I used the list of length units from https://developer.mozilla.org/en/CSS/length. I believe this resolves Issue #26.

lencioni commented 12 years ago

Some things in misc/initial-values.ini may need to be tweaked, but I am not familiar with how that file is used.

peteboere commented 12 years ago

Nice one, your solution looks good for merging in the next release.

For some strange reason the working draft spec specifies 0s as the default value on transtition-delay/transition-duration but a unitless 0 for animation-delay/animation-duration defaulting to seconds.

I've updated the initial-values.ini on my development version to reflect this.