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

Properties should not be sorted #61

Open
GoogleCodeExporter opened this issue Dec 8, 2015 · 0 comments
Open

Properties should not be sorted #61

GoogleCodeExporter opened this issue Dec 8, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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

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

No branches or pull requests

1 participant