ChristianMurphy/postcss-combine-duplicated-selectors

Does it support css variables?

tanekim88 opened this issue · 1 comments

Does it support a case like this, with :root? I am getting an error when I do that.
:root {
--a: red;
}
.b{
color: var(--a);
}
.b{
color: var(--a);
}

it does.
here is the test case that shows variables working.

test(
'remove duplicate property with matching value, allow fallback',
removeExactDuplicates,
minify`
.a {
height: 10px;
}
.a {
height: 10px;
height: var(--linkHeight);
}
`,
minify`
.a {
height: 10px;
height: var(--linkHeight);
}
`,
);

If you are encountering an error please share a runkit with an example of the issue https://npm.runkit.com