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

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