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

rgb2hsl bug #157

Closed
lzl124631x opened this issue Mar 30, 2016 · 1 comment
Closed

rgb2hsl bug #157

lzl124631x opened this issue Mar 30, 2016 · 1 comment
Labels

Comments

@lzl124631x
Copy link

compass will translate rgba(#F1F1F1, .9) into rgba(241, 241, 241, 0.9), but cssnano will compress it into hsla(0,0%,95%,.9).

However, rgb(241, 241, 241) actually equals hsl(0,0%,94.5%). So I think cssnano rounded it up, but it will result in UI bug, though minor.

@ben-eb
Copy link
Collaborator

ben-eb commented Mar 30, 2016

This looks like a bug with the https://github.com/Qix-/color module.

const color = require('color');
console.log(color('rgb(241, 241, 241)').hslString());

Could you raise this issue there please?

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