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

Incorrect rounding #1

Open
TheKodeToad opened this issue Sep 30, 2022 · 0 comments
Open

Incorrect rounding #1

TheKodeToad opened this issue Sep 30, 2022 · 0 comments

Comments

@TheKodeToad
Copy link

TheKodeToad commented Sep 30, 2022

It seems most browsers don't round RGB values down but to the nearest integer.
I'm not sure whether this is the exact difference, but I did notice the browser's values were off by one when using One Dark's purple colour - hsl(286, 60%, 67%)
in browser (Firefox and Chrome): #c678dd
csscolor4j : #c578dd

Very small change that virtually nobody would notice, but I'm already fearing my issue tracker filling with people complaining about this.

@TheKodeToad TheKodeToad changed the title Inconsistent with browsers Incorrect rounding Sep 30, 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

1 participant