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

bug: the line that's after one with "important" is missed #44

Open
iiiiiiiiiix opened this issue Nov 28, 2019 · 0 comments
Open

bug: the line that's after one with "important" is missed #44

iiiiiiiiiix opened this issue Nov 28, 2019 · 0 comments

Comments

@iiiiiiiiiix
Copy link

Hello. I want to remove duplicate declarations in my css. Some of them contain rules with and without "important".

I've tried simple example but found the following behaviour (everything is set to false in the config)

Input:

body {
    padding: 5px !important;
    margin: 5px;
    font-size: 15px;
}

body {
    padding: 10px;
}

Output:

body {
  padding: 5px !important;
  font-size: 15px;
  padding: 10px;
}

The margin is missed.


Input:

body {
    padding: 5px;
    margin: 5px;
    font-size: 15px;
}

body {
    padding: 10px;
}

Output:

body {
  margin: 5px;
  font-size: 15px;
  padding: 10px;
}

Everything is ok.

What's the problem? Am I doing something wrong?

@iiiiiiiiiix iiiiiiiiiix changed the title The line that's after one with "important" is missed bug: the line that's after one with "important" is missed Nov 28, 2019
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

1 participant