swc/crates/swc_css_minifier/tests/fixture/compress-animation/input.css
Jason 1dc5307069
feat(css/minifier): Minify the name of @keyframes (#5894)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/5889.

Co-authored-by: 一丝 <percyley@qq.com>
2022-09-22 03:12:50 +00:00

120 lines
1.4 KiB
CSS

.foo {
animation-name: "none", "unset", "foo bar";
}
.foo {
animation-name: "none", foo;
}
.foo {
animation-name: none, none;
}
/* Test CSS-wide keywords */
.foo {
animation-name: "inherit";
}
.foo {
animation-name: "initial";
}
.foo {
animation-name: "unset";
}
.foo {
animation-name: "revert";
}
.foo {
animation-name: "revert-layer";
}
.foo {
animation-name: "default";
}
.foo {
animation-name: foo, "revert";
}
.foo {
animation-name: "string", "revert";
}
.foo {
animation-name: "string", foo, "revert";
}
/* Test animation shorthand */
.foo {
animation: none;
}
.foo {
animation: "none";
}
.foo {
animation: "None";
}
.foo {
animation: "none", none;
}
.foo {
animation: none, none;
}
.foo {
animation: "none" none;
}
.foo {
animation: none none;
}
.foo {
animation: ease ease 2s;
}
/* Test animation-name + animation-fill-mode */
.foo {
animation: "none" 2s both;
}
.foo {
animation: both "none" 2s;
}
.foo {
animation: "none" 2s none;
}
.foo {
animation: none "none" 2s;
}
.foo {
animation: none, "none" 2s forwards;
}
.foo {
animation: "unset";
}
.foo {
animation: "string" .5s;
}
.foo {
animation: "unset" .5s;
}
.foo {
animation: none, "unset" .5s;
}
.foo {
animation: "unset" 0s 3s infinite, none;
}
.foo {
animation: 2s ease ease;
}
.foo {
animation: 3s alternate reverse;
}