Skip to content

:local in "animation" when animation-name is placed after animation-delay #1228

@faiwer

Description

@faiwer
  • Operating System: Linux Mint
  • Node Version: v12.13.0
  • NPM Version: 6.12.0
  • webpack Version: 4.41.5
  • css-loader Version: 3.5.3

Expected Behavior

Outbound css-code doesn't contain :local as an animation name. Or it throws an error if this way of writing animation: %s is unsupported.

Actual Behavior

it provides animation: 3s :local(animationName) (in the final css-code)

Code

.a {
  /* it doens't work */
  animation: 3s animationName; 
}
.b {
  /* it works */
  animation: animationName 3s; 
}

@keyframes animationName {
  0% {
    background: white;
  }
  100% {
    background: red;
  }
}

How Do We Reproduce?

I did it here. But this demo works with parcel, not with webpack. So... I am not sure that I am creating an issue in a proper repo. My project where I faced it uses webpack and it works exactly the same. Should I create a bug there css-modules/css-modules instead?

So, how to reproduce:

  • write a style with animation: 3s animationName
  • it doesn't work
  • replace it with animation: animationName 3s
  • it works

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions