Skip to content
Permalink
Browse files
fix(postcss-merge-longhand): mergeLonghand should not apply to CSS va…
…riables (#1057)

Fixes #1051
  • Loading branch information
KKoukiou committed Apr 26, 2021
1 parent 15da338 commit 8aa64c714f615db747605f6d79fcc043e9ee8e57
@@ -1196,6 +1196,13 @@ test(
)
);

test(
'Should preserve border rule with only custom properties #1051',
passthroughCSS(
'h1{border-color: var(--a) var(--b) var(--c) var(--d);border-style:solid;border:var(--fooBar));}'
)
);

test(
'should overwrite some border-width props and save fallbacks and preserve case #648 2',
processCSS(
@@ -55,7 +55,7 @@ function getLevel(prop) {
const isValueCustomProp = (value) => value && !!~value.search(/var\s*\(\s*--/i);

function canMergeValues(values) {
return !values.some(isValueCustomProp) || values.every(isValueCustomProp);
return !values.some(isValueCustomProp);
}

function getColorValue(decl) {

0 comments on commit 8aa64c7

Please sign in to comment.