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

[Bug] : Percent value is converted to a different value #957

mischnic opened this issue Oct 4, 2020 · 2 comments

[Bug] : Percent value is converted to a different value #957

mischnic opened this issue Oct 4, 2020 · 2 comments


Copy link

@mischnic mischnic commented Oct 4, 2020

Describe the bug
70% is minified into 1%

To Reproduce
Steps to reproduce the behavior:

  1. Go to
  2. Insert body { opacity: 70%; } on the left
  3. "Run"
  4. See incorrect result


body {opacity: 70%;}

Current behaviour


Expected behavior


Desktop (please complete the following information):

  • cssnano: 4.1.10
  • cssnano-preset-default: 4.0.7
  • postcss-convert-values 4.0.1

Additional context
This seems to be fixed by using this config:

module.exports = {
	preset: [
			convertValues: false,
Copy link

@anikethsaha anikethsaha commented Oct 4, 2020

Thanks for the issue

This has been fixed in master.
It will be released soon.
Till then use cssnano@nightly

Copy link

@ludofischer ludofischer commented Mar 19, 2021

Fixed in 5.0.0-rc.2

jim60105 added a commit to jim60105/sound-buttons that referenced this issue Apr 2, 2021
這是cssnano的bug,issue: cssnano/cssnano#957
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants