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

css-minifier: some compression rules fail when @keyframes are inside @layer #2027

Closed
yisibl opened this issue Feb 17, 2022 · 1 comment
Closed

Comments

@yisibl
Copy link
Contributor

yisibl commented Feb 17, 2022

@layer foo {
  @keyframes     slide-left    {
    from   { width: 200px; }
    100%   { width: 500px; }
  }
}

esbuild output:

@layer foo{@keyframes slide-left {from {width: 200px;} 100% {width: 500px;}}}

Expectation

No problem when there is no @layer. https://caniuse.com/mdn-css_at-rules_layer

@layer foo{@keyframes slide-left{0%{width:200px}to{width:0}}}
@evanw
Copy link
Owner

evanw commented Feb 17, 2022

This is a new CSS rule so esbuild doesn't know about it yet. I can add basic support for it.

@evanw evanw closed this as completed in 2734bbf Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants