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

transcribes OKLCH poorly #730

Closed
tomByrer opened this issue May 2, 2024 · 1 comment
Closed

transcribes OKLCH poorly #730

tomByrer opened this issue May 2, 2024 · 1 comment

Comments

@tomByrer
Copy link

tomByrer commented May 2, 2024

For some reason the playground translates OKLCH into LAB, which is undesired.
I believe it is best to keep input OKLCH colors, when the only difference between OKLCH & LAB is Safari 15.0-15.3 & Opera 97 AFAIK.

The hex colors are fine, though might be redundant in the browser compatible I selected? If the point of hex colors is to prevent from entering P3/REC2000 color spaces, then the OKLCH/LAB CSS should be inside a P3/REC2000 @supports selector.

Seems CIELAB is a step back from OKLCH:
https://bottosson.github.io/posts/oklab/
https://evilmartians.com/chronicles/oklch-in-css-why-quit-rgb-hsl#oklch-vs-lch

demo

@devongovett
Copy link
Member

That's because you've forced the Colors feature to on, which overrides the browser compatibility data we use by default. With default settings, this does not occur. Example

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

No branches or pull requests

2 participants