Caniuse: CSS4 - Specifying profiled colors: the color() function

Created on 24 Jan 2017  路  2Comments  路  Source: Fyrd/caniuse

Found no data or issue when searching for this.
Afaik this differs from #2864, which primarily requests color-mod().

This is intended for 'CSS Color Module Level 4' color(), allowing to specify profiled colors.

Spec: https://drafts.csswg.org/css-color/#color-function

Example:

em {
  color: color(p3 50 250 100);
}

Shamelessly stolen from https://developer.apple.com/library/prerelease/content/releasenotes/General/WhatsNewInSafari/Articles/Safari_10_1.html

Safari 10.1 (& TP) / iOS 10.3 support this, apparently.

Support data suggestion

Most helpful comment

Now available at https://caniuse.com/#feat=css-color-function

All 2 comments

+1

This is supported in Safari out of the box (not hidden behind development switches) and is, therefore, able to be used on the web. It's real and represents new wide-gamut color functionality on the web not previously available.

As one notable example, Panic shared stories using this in this tweet thread: https://twitter.com/panic/status/1106633444157607936. It's also in use on their marketing websites, like https://panic.com/nova/ and https://play.date.

I've made a color picker for the P3 color space, at https://p3colorpicker.cool, as another example of it in-use, with the ultimate goal of increasing wide-gamut color adoption.

Now available at https://caniuse.com/#feat=css-color-function

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SteveALee picture SteveALee  路  3Comments

bappygolder picture bappygolder  路  3Comments

greigs picture greigs  路  3Comments

36degrees picture 36degrees  路  3Comments

dnknn picture dnknn  路  3Comments