Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minification of '0' #215

Closed
eGavr opened this issue Jan 29, 2014 · 3 comments
Closed

Minification of '0' #215

eGavr opened this issue Jan 29, 2014 · 3 comments

Comments

@eGavr
Copy link

eGavr commented Jan 29, 2014

Hi!
Look at this test:

.a {
    b: (0.1em) (000.001) (010.00) (.0s)
}

After cleancss we get:


.a{b:(0.1em) (000.001) (010) (s)}

What about the removing of all unnecessary nulls and spaces between the values?


0.1em => .1em
000.001 => .001
010.00 => 10

@GoalSmashers
Copy link
Contributor

If you would be so kind to give us a real-world example of a cross-browser CSS code in action we would be glad to fix it!

@eGavr
Copy link
Author

eGavr commented Jan 29, 2014

Here it is


a {
    color: rgba(0, 0, 0, .0)
}

is minimized to


a{color:rgba(0,0,0,)}

It is invalid, isn't it?

Moreover cleancss replaces .0, wherever it is met, on '' (empty string)

@eGavr
Copy link
Author

eGavr commented Jan 29, 2014

Or, for example, such kind of code


h {font-size:040px;}

is minimized to


h{font-size:040px}

It is valid , yes! But it is possible to replace 040px on 40px and won one symbol in minimization!

Such values can be minimized too


-0px  => 0
-0 => 0
0.0em => 0

etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants