purgecss icon indicating copy to clipboard operation
purgecss copied to clipboard

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

Open hsnaydd opened this issue 5 years ago • 1 comments

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;
  }
}

hsnaydd avatar Sep 14 '20 12:09 hsnaydd

This might be related to this https://github.com/FullHuman/purgecss/issues/518 issue.

lemmon avatar Nov 26 '20 12:11 lemmon