Closed jondlm closed 6 years ago
@jondlm Adding the actual output would help me understand the issue easier.
Feel free to submit a PR
@MadLittleMods This plugin wrongly prepends :root:root:root
to animation declarations:
@keyframes my-animation {
:root:root:root from {
background-color: red;
}
:root:root:root to {
background-color: yellow;
}
}
This breaks all custom animations.
@laucheukhim 😢 Feel free to submit a PR to filter the rule
if it is a @keyframes
at-rule, https://github.com/MadLittleMods/postcss-increase-specificity/blob/cf8cad46f38942d5e5f4bc5e79338ef5c3975289/index.js#L21
Looks like this was fixed with #14
Thanks for following up @jondlm. It looks like this issue wasn't closed because the PR was technically closed
Rather than do a big explanation, I'll give you a new failing test case:
custom-animation.css
custom-animation.expected.css
I don't think it should be adding
:root
inside the@keyframe
section.Thanks! // Jon