Skip to content
New issue

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

PurgeCss does not recognize keyframes that used as CSS custom properties (variables) value #478

Open
hsnaydd opened this issue Sep 14, 2020 · 1 comment
Labels

Comments

@hsnaydd
Copy link

hsnaydd commented Sep 14, 2020

PurgeCss deletes the keyframe even though it is used;

.component {
  animation: var(--component-animation)
}

.component--animated {
  --component-animation: fadeIn 0.4s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
@Ffloriel Ffloriel added the bug label Sep 20, 2020
@lemmon
Copy link

lemmon commented Nov 26, 2020

This might be related to this #518 issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants