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

Removal of overridden properties not work with background-color #257

Closed
someden opened this issue Dec 7, 2015 · 3 comments
Closed

Removal of overridden properties not work with background-color #257

someden opened this issue Dec 7, 2015 · 3 comments

Comments

@someden
Copy link

someden commented Dec 7, 2015

Before:

.test {
  background-color: #fff;
  background-color: #000;
  color: red;
  margin: 0;
  line-height: 3cm;
  color: green;
}

After:

.test {
  background-color: #fff;
  background-color: #000;
  margin: 0;
  line-height: 3cm;
  color: green
}
@lahmatiy
Copy link
Member

lahmatiy commented Dec 7, 2015

Yep. For now csso avoids to merge any background properties since it's too complex and leads to bugs. I'm planing to improve property merge after next big release.

@someden
Copy link
Author

someden commented Dec 7, 2015

Ok, thanks!

@lahmatiy
Copy link
Member

Current output (formatted):

.test {
    background-color: #000;
    margin: 0;
    line-height: 3cm;
    color: green
}

So it's not an issue now.

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

2 participants