Skip to content

URL handling in @keyframes blocks #164

Closed
@madx

Description

@madx

When using the following CSS, I do have an error Module not found: Error: Cannot resolve module for the url() part in the @keyframes block:

.className {
  background-image: url("./image.png")
}

@keyframes anim {
  0% {
    background-image: url("./image.png")
  }
}

I added a simple test to test/urlTest.js to expose the behaviour:

test("keyframe background img", "@keyframes anim { background: green url('img.png') xyz }", [
  [1, "@keyframes anim { background: green url({./img.png}) xyz }", ""]
]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions