Intent to Ship: hwb() color notation

89 views
Skip to first unread message

Anders Hartvoll Ruud

unread,
Feb 8, 2022, 5:41:32 AM2/8/22
to blink-dev, jan.k...@gmail.com

Contact emails

and...@chromium.org, on behalf of:
jan.k...@gmail.com

Explainer

None

Specification

https://drafts.csswg.org/css-color/#the-hwb-notation

Summary

HWB (short for Hue-Whiteness-Blackness) is another method of specifying sRGB colors, similar to HSL, but often even easier for humans to work with. It describes colors with a starting hue, then a degree of whiteness and blackness to mix into that base hue.

Example CSS declaration: color:hwb(194 0% 0%);


Since hwb() resolves to RGB, it's a relatively straightforward addition that doesn't add complexity or performance concerns.


CL: https://chromium-review.googlesource.com/c/chromium/src/+/3404291


Blink component

Blink>CSS

TAG review

Didn't file one.

Risks


Interoperability and Compatibility


Gecko: Shipped/Shipping (https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/96)

WebKit: Shipped/Shipping (https://webkit.org/blog/11989/new-webkit-features-in-safari-15/)

Web developers: No signals

Other signals:


Debuggability

Inspector support will be shipped at the same time.

Is this feature fully tested by web-platform-tests?

Yes:

Requires code in //chrome?

False

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1288883

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5637256860663808

This intent message was generated by Chrome Platform Status.

Joe Medley

unread,
Feb 8, 2022, 2:20:57 PM2/8/22
to Anders Hartvoll Ruud, blink-dev, jan.k...@gmail.com
Anders,

Which version of Chrome do you hope to ship in?

Joe
Joe Medley | Technical Writer, Chrome DevRel | jme...@google.com | 816-678-7195
If an API's not documented it doesn't exist.


--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAKFBnUoZTq_4U9-ocMkOPDczeZ6DSfdCLZGkY8Crbp0tT68OxA%40mail.gmail.com.

Eric Willigers

unread,
Feb 8, 2022, 4:30:08 PM2/8/22
to blink-dev, Joe Medley, blink-dev, jan.k...@gmail.com, Anders Hartvoll Ruud
non-owner lgtm for M101

Mike Taylor

unread,
Feb 8, 2022, 9:12:33 PM2/8/22
to Anders Hartvoll Ruud, blink-dev, jan.k...@gmail.com
LGTM1

(Super cool first contribution, Jan)

Anders Hartvoll Ruud

unread,
Feb 9, 2022, 3:03:43 AM2/9/22
to Joe Medley, blink-dev, jan.k...@gmail.com
On Tue, Feb 8, 2022 at 8:20 PM Joe Medley <jme...@google.com> wrote:
Anders,

Which version of Chrome do you hope to ship in?

Oops, should have specified that initially. M100 is in a feature freeze, so M101 as suggested by Eric sounds good to me. (Chromestatus entry updated to reflect that).

Yoav Weiss

unread,
Feb 9, 2022, 3:26:16 AM2/9/22
to Anders Hartvoll Ruud, Joe Medley, blink-dev, jan.k...@gmail.com
LGTM2
Great to see us catching up here!

Daniel Bratell

unread,
Feb 9, 2022, 4:00:01 AM2/9/22
to Yoav Weiss, Anders Hartvoll Ruud, Joe Medley, blink-dev, jan.k...@gmail.com

Jan Keitel

unread,
Feb 9, 2022, 10:50:22 AM2/9/22
to Daniel Bratell, Yoav Weiss, Anders Hartvoll Ruud, Joe Medley, blink-dev
Thank you all, especially @Anders for guiding this through.
Reply all
Reply to author
Forward
0 new messages