lupuswwww / cssmin

Automatically exported from code.google.com/p/cssmin
0 stars 0 forks source link

Properties should not be sorted #61

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of CssMin are you using (source and/or build)?
1.4.8

What was the input stylesheet and/or configuration options?
.myClass {
    display: inline-block;
    *display: inline;
}

What is the expected result?
.myClass {
    display: inline-block;
    *display: inline;
}

And what is the actual result and/or error message?
.myClass {
    *display: inline;
    display: inline-block;
}

Please provide any additional information below.
Sorting the properties may look nicer, but it also causes problems when 
overriding a property in a selector.
In our case, we override the property "display" for correct rendering in IE7. 
Now, in the example given above the property '*display" is moved in first 
position in the selector because of the sorting of the properties. This causes 
IE7 to use the value "inline-block" and not the value "inline" as intended.

So either sorting of the properties should be configurable or generally 
disabled, since it gives no advantages.

Original issue reported on code.google.com by peterc...@googlemail.com on 24 Aug 2012 at 7:58