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

Multi-value CSS involving 'unset' is changed into an invalid CSS #1103

Closed
totoguy opened this issue Dec 29, 2019 · 0 comments
Closed

Multi-value CSS involving 'unset' is changed into an invalid CSS #1103

totoguy opened this issue Dec 29, 2019 · 0 comments
Labels

Comments

@totoguy
Copy link

totoguy commented Dec 29, 2019

Precheck

  • Do a quick search and make sure a bug has not yet been reported;
  • do a quick check if the bug still exists in the latest patch version;
  • finally, be nice and have fun!

Environment

  • clean-css version - npm ls clean-css: 4.2.1
  • node.js version - node -v: 12.13.0
  • operating system: Windows 10

Configuration options

var CleanCSS = require('clean-css');
new CleanCSS({
  compatibility: 'ie9',
  level: {
     2: {
        skipProperties: [
           'transition', 
           'font', 
        ],
     },
  },
  inline: false,
  returnPromise: true,
  sourceMap: this._options.sourceMap,
})

Input CSS

.some-class {
   padding: unset;
   padding-right: 30px;
}

Actual output CSS

.some-class {
   padding: unset 30px unset unset;
}

Expected output CSS

.some-class {
   padding: unset;
   padding-right: 30px;
}
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