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

Merging of overwritten properties doesn't work ! #750

Closed
Allaoua9 opened this issue Mar 19, 2016 · 2 comments
Closed

Merging of overwritten properties doesn't work ! #750

Allaoua9 opened this issue Mar 19, 2016 · 2 comments
Assignees
Milestone

Comments

@Allaoua9
Copy link

Input Css :

h2 { width: 100px; width: 200px; }

Output Css:
h2 { width: 100px; width: 200px; }

Expected Output CSS:
h2 { width: 200px; }

CleanCss version : 3.4.10.
No options passed.
Using it in node js :
const cleanCss = new CleanCss(); cleanCss.minify(css);

@jakubpawlowicz
Copy link
Collaborator

Sequential declarations are treated as redefining by default, but in this case the first declaration should indeed be dropped. Good catch!

@hostep
Copy link

hostep commented Mar 19, 2016

@jakubpawlowicz, drawing your attention to #540 and probably #290 which look like very similar issues.

@jakubpawlowicz jakubpawlowicz modified the milestone: 4.0 Dec 12, 2016
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

3 participants