zmoazeni / csscss

A CSS redundancy analyzer that analyzes redundancy.
http://zmoazeni.github.io/csscss/
MIT License
2.92k stars 151 forks source link

0 without units issue #32

Closed kopipejst closed 11 years ago

kopipejst commented 11 years ago

there is no difference with 0 with and without units so they should be treated as duplicates

example css:

.foo {
    padding: 0px;
}

.bar {
    padding: 0;
}

doesn't return any duplicates

zmoazeni commented 11 years ago

Nice catch. Thanks!

Sent from my iPhone

On Apr 11, 2013, at 7:48 AM, Ivan Lazarevic notifications@github.com wrote:

there is no difference with 0 with and without units so they should be treated as duplicates

example css:

.foo { padding: 0px; }

.bar { padding: 0; } doesn't return any duplicates

— Reply to this email directly or view it on GitHub.

zmoazeni commented 11 years ago

This is now in master and will go out in the next release. Thanks for bringing it up @kopipejst