Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS4 - Specifying profiled colors: the color() function #3134

Closed
Schweinepriester opened this issue Jan 24, 2017 · 2 comments · Fixed by #5443
Closed

CSS4 - Specifying profiled colors: the color() function #3134

Schweinepriester opened this issue Jan 24, 2017 · 2 comments · Fixed by #5443

Comments

@Schweinepriester
Copy link
Contributor

@Schweinepriester Schweinepriester commented Jan 24, 2017

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.

@alexguichet
Copy link

@alexguichet alexguichet commented Jan 17, 2020

+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.

@Fyrd
Copy link
Owner

@Fyrd Fyrd commented May 28, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants