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

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

From: Chris Lilley via GitHub <sysbot+gh@w3.org>
Date: Mon, 19 Oct 2020 07:09:26 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-711719583-1603091365-sysbot+gh@w3.org>
I added the achromatic tests to color.js hwb code.

```js
let color = new Color("hwb(150, 0%, 0%)");
color.to("sRGB").hex;
```
gives `#00ff80`

```js
let color = new Color("hwb(30deg 100% 20%)");
color.to("sRGB").hex;
```
gives `#d5d5d5`

I'm now going to change the CSS Color 4 sample code as you suggested.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 19 October 2020 07:09:28 UTC

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