W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2020

Re: [csswg-drafts] [css-color-4] Some example HWB-to-RGB translations are incorrect (#5531)

From: Natalie Weizenbaum via GitHub <sysbot+gh@w3.org>
Date: Fri, 18 Sep 2020 22:05:49 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-695107235-1600466748-sysbot+gh@w3.org>
I just ran into another interesting example. `hwb(150, 0%, 0%)` is listed as `#00ff7f`, but should be `#00ff80`. It's odd because the given JS implementation of `hwbToRgb(150/60, 0, 0).map(c => c * 255)` returns `[0, 255, 127.5]`, which would round to `#00ff80`. In general, for some reason the "Green-Cyans" section seems to have a lot of errors where `X.5` is rounded down instead of up, which other sections (at least those prior to "Green-Cyans") do not.

-- 
GitHub Notification of comment by nex3
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5531#issuecomment-695107235 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 18 September 2020 22:05:52 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:16 UTC