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

[css-color] limits to specific color spaces and/or color notations #10035

Open
svgeesus opened this issue Mar 6, 2024 · 1 comment
Open

[css-color] limits to specific color spaces and/or color notations #10035

svgeesus opened this issue Mar 6, 2024 · 1 comment
Labels
css-color-4 Current Work

Comments

@svgeesus
Copy link
Contributor

svgeesus commented Mar 6, 2024

I would prefer a normative solution to the problem of handling "extreme" colors produced by oklab and oklch (e.g, the ones from #9449 (comment)), which gets us to "some very wide gamut".

The value as mentioned in that comment can be expressed in many different ways.

https://colorjs.io/apps/convert/?color=oklch(90%25%2090%25%200deg)&precision=4

For example with hwb(329.3 10.37% -52.94%) or lab(83.87 115.6 1.847).

Implementing gamut mapping only for oklab, oklch would be highly problematic.

I immediately think of these :

  • oklch(from lab(83.87 115.6 1.847) l c h)
  • lch(from oklch(90% 90% 0deg) l c h)
  • color-mix(in lch, oklch(90% 90% 0deg), oklch(90% 90% 0deg))
  • ...

How are these affected when gamut mapping is limited to oklch and oklab notations?


Edit:

For me personally it is also a bit a side-track :) I keep stumbling over this because I think it is important. But it isn't directly related to this issue.

Discussing limits to specific color spaces and/or color notations should be a separate issue.

Originally posted by @romainmenke in #9449 (comment)

@svgeesus
Copy link
Contributor Author

svgeesus commented Mar 6, 2024

Discussing limits to specific color spaces and/or color notations should be a separate issue.

Agreed, hence this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-color-4 Current Work
Projects
None yet
Development

No branches or pull requests

1 participant