postcss-css-variables icon indicating copy to clipboard operation
postcss-css-variables copied to clipboard

Extra declaration for pseudo class

Open asvny opened this issue 9 years ago • 2 comments

Input:

:root {
    --color: blue;
}

.c:focus {
    --color: red;
    border-color: var(--color);
}

Output:

.c:focus {
    border-color: blue;
}

.c:focus:focus {
    border-color: red;
}

Expected:

.c:focus {
    border-color: red;
}

asvny avatar Jul 08 '16 11:07 asvny

Thanks for the report :grinning: PRs are welcome

I checked this out a couple days ago but thought I would give a reply in case you didn't see the edit to your message.

The extra pseudo class doesn't affect the functionality but is certainly undesired.

MadLittleMods avatar Jul 13 '16 06:07 MadLittleMods

I run into the same problem :)

andreasisaak avatar Apr 08 '17 19:04 andreasisaak