Skip to content

mergeLonghand breaks border-color #553

@hudochenkov

Description

@hudochenkov

mergeLonghand breaks CSS in cssnano@4.0.2.

Input:

.a {
    border: solid transparent;
    border-width: 0 8px 16px;
    border-bottom-color: #eee;
}

Output:

.a {
  border: solid transparent;
  border-color: currentColor currentColor #eee;
  border-width: 0 8px 16px;
}

currentColor is black by default, so instead of transparent, we have black.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions