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] : mergeLonghand should not apply to CSS variables #1051

Closed
redallen opened this issue Apr 19, 2021 · 0 comments · Fixed by #1057
Closed

[Bug] : mergeLonghand should not apply to CSS variables #1051

redallen opened this issue Apr 19, 2021 · 0 comments · Fixed by #1057

Comments

@redallen
Copy link

Describe the bug
mergeLonghand should not apply to CSS vars since it cannot know what the var expands to.

To Reproduce
Input:

.pf-c-select__toggle::before {
    border-color: var(--pf-c-select__toggle--before--BorderTopColor) var(--pf-c-select__toggle--before--BorderRightColor) var(--pf-c-select__toggle--before--BorderBottomColor) var(--pf-c-select__toggle--before--BorderLeftColor);
    border-style: solid;
    border-width: var(--pf-c-select__toggle--before--BorderWidth);
}

Output:

.pf-c-select__toggle:before{
  border-left:var(--pf-c-select__toggle--before--BorderWidth) solid var(--pf-c-select__toggle--before--BorderLeftColor);
  border-bottom:var(--pf-c-select__toggle--before--BorderWidth) solid var(--pf-c-select__toggle--before--BorderBottomColor);
  border-right:var(--pf-c-select__toggle--before--BorderWidth) solid var(--pf-c-select__toggle--before--BorderRightColor);
  border-top:var(--pf-c-select__toggle--before--BorderWidth) solid var(--pf-c-select__toggle--before--BorderTopColor)
}

Expected behavior
Expected output: Same as input.

cssnano@4.1.10

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

Successfully merging a pull request may close this issue.

1 participant