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

Incorrect merging of border declarations #551

Closed
andyjansson opened this issue Jul 17, 2018 · 0 comments
Closed

Incorrect merging of border declarations #551

andyjansson opened this issue Jul 17, 2018 · 0 comments
Labels

Comments

@andyjansson
Copy link
Contributor

As originally reported here:

Case 1

Input

.merge-longhand {
  border: 1px solid black;
  border-top-width: 2px;
  border-right-width: 2px;
  border-bottom-width: 2px;
}

Output

.merge-longhand {
  border: 2px solid black;
  border-left: solid black;
  border-width: 1px;
}

Expected

.merge-longhand {
  border: solid black;
  border-width: 2px 2px 2px 1px;
}

Case 2

Input

.merge-longhand {
  border: none;
  border-top: 6px solid #000;
  border-bottom: 1px solid #fff;
}

Output

.merge-longhand {
  border: 6px solid #000;
  border-left: none;
  border-right: none;
}

Expected

.merge-longhand {
  border: none;
  border-top: 6px solid #000;
  border-bottom: 1px solid #fff;
}

Thanks to @apriljunge and @implico for reporting these issues.

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

No branches or pull requests

1 participant