aar...@chromium.org, fs...@chromium.org, ccam...@chromium.org, fut...@chromium.org, juan...@chromium.org
https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
Several new features are being added to CSS Colors from CSS Color Module Level 4:
1. New color types: lab, Oklab, lch, Oklch
2. color() function for specifying colors with predefined color spaces.
3. Ability to specify color spaces for animations and transitions.
4. Users can now specify color spaces for gradients.
Additionally the color-mix() function is being added from CSS Color Module Level 5.
Not applicable
Interoperability is one of the major motivations for implementing these new features, as "Color Spaces and Functions" is one of the categories emphasized in Interop 2022:
Active work is taking place to keep all major browser vendors synchronized by collaborating on web platform tests and comparing results.
Gecko: Shipped/Shipping (https://developer.mozilla.org/en-US/docs/Web/CSS/color_value)
WebKit: Shipped/Shipping (https://webkit.org/blog/6682/improving-color-on-the-web)
https://webkit.org/blog/10042/wide-gamut-color-in-css-with-display-p3/
Web developers: Strongly positive Several partners (Adobe/Figma for example) have expressed interest in the new color API.
Dev-tools team is currently working on implementing an improved color picker, color space translation tool and others.
Yes
Yes, all tests in wpt/css/css-color/
As of this moment we pass 6594 out of 9702 (Firefox passes 5729 and Safari passes 7020), we intend to pass them all before shipping to stable.
enable-experimental-web-platform-features
False
https://codepen.io/argyleink/pen/RwyOyeq
https://2021-hd-color-at-css-camp.netlify.app
We intend to turn these features on in Canary and Dev as soon as we pass the remaining WPT tests and ship to stable for Chrome 110 in December.
The gamut mapping section of the spec (https://www.w3.org/TR/css-color-4/#gamut-mapping) is not included here, and will need changes or likely need to be dropped entirely as it is a performance issue and is untested and unimplemented everywhere:
https://github.com/w3c/csswg-drafts/issues/7653
https://github.com/w3c/csswg-drafts/issues/7610
There are still some issues to be ironed out with resolving color-mix:
https://github.com/w3c/csswg-drafts/issues/7302
https://chromestatus.com/feature/5147752829288448
This intent message was generated by Chrome Platform Status.
>>>
>>> TAG review status
>>>
>>> Not applicable
>>>
>>>
>>> Risks
>>>
>>> Interoperability and Compatibility
>>>
>>> Interoperability is one of the major motivations for implementing these new features, as "Color Spaces and Functions" is one of the categories emphasized in Interop 2022:
>>>
>>> https://web.dev/interop-2022/
>>>
>>> https://wpt.fyi/interop-2022
>>>
>>> Active work is taking place to keep all major browser vendors synchronized by collaborating on web platform tests and comparing results.
>>>
>>>
>>> Gecko: Shipped/Shipping (https://developer.mozilla.org/en-US/docs/Web/CSS/color_value)
--
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/CAL5BFfX%3Dy%3DpZCkfPcsY_wi0mrzBHv5V5TOaWAPbrRo6kC-7M4w%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
What will be the devtools experience without that support? Will it somewhat work and treat the value as an opaque string, or will it be broken because it's not recognized?
The value becomes an opaque string, but the color picker does not appear.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/a7881e14-4b8a-483c-abf0-24cab0691778n%40chromium.org.
LGTM3 (note Rick's condition)
/Daniel
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY-8QZjS19VW937GpcTcB7g2ZTx%3D0mnVSA%2BroSnHMm2f3A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/19b5bef7-d03f-be2a-0dd4-e0ae6bca0c0e%40gmail.com.