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
Describe the bug mergeLonghand should not apply to CSS vars since it cannot know what the var expands to.
var
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
The text was updated successfully, but these errors were encountered:
fix(postcss-merge-longhand): mergeLonghand should not apply to CSS va…
263fa61
…riables Fixes cssnano#1051
8aa64c7
…riables (#1057) Fixes #1051
Successfully merging a pull request may close this issue.
Describe the bug
mergeLonghand should not apply to CSS
var
s since it cannot know what the var expands to.To Reproduce
Input:
Output:
Expected behavior
Expected output: Same as input.
cssnano@4.1.10
The text was updated successfully, but these errors were encountered: