Re: [csswg-drafts] [css-color-4] What if legacy colors *also* interpolated in Oklab by default? (#7948)

Sorry, for the delay in replying. I was away. 

I agree with @romainmenke. This is not about the gradients being better looking (they are), but as mentioned before, they can have unexpected side effects on contrast and other elements close to the gradient.

Here's an example that I made using the codepen above:
<img width="1702" alt="image" src="https://user-images.githubusercontent.com/1587/227300682-ff400767-a352-41d7-bd29-ea7f59041bd2.png">

It's a simple `#F00` to `#0F0` gradient with the text color set to `#CFA903`. This is clearly readable on the current default and unreadable on oklab. This is one of many potential types of problems we will have if we change the default.

The "opt-in" change is relatively simple (just add `in oklab` on the gradient) and much safer from breaking existing sites. 

-- 
GitHub Notification of comment by fserb
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7948#issuecomment-1481642713 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 23 March 2023 17:56:33 UTC