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

Level 2 Optimization drops multiple transition properties #1115

Closed
wclaibor opened this issue Apr 22, 2020 · 1 comment
Closed

Level 2 Optimization drops multiple transition properties #1115

wclaibor opened this issue Apr 22, 2020 · 1 comment
Labels

Comments

@wclaibor
Copy link

Environment

  • clean-css version - npm ls clean-css: -- clean-css@4.2.3
  • node.js version - node -v: v12.13.0
  • operating system: Windows

Configuration options

var CleanCSS = require('clean-css');
new CleanCSS({
  level: 2
})

Input CSS

.a {
    transition-property: transform, margin-left;
    transition-delay: 0ms;
    transition-duration: 375ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

Actual output CSS

.a{transition:transform 375ms cubic-bezier(.4,0,.2,1)}

Expected output CSS

.a {
    transition-property: transform, margin-left;
    transition-delay: 0ms;
    transition-duration: 375ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
@jakubpawlowicz
Copy link
Collaborator

Sorry it took so long to fix, but it's fixed on main branch, and soon #1135 in v5 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants