Use 0 instead of none in OKLCH values#14741
Conversation
|
According to the spec Chrome is indeed wrong here (good bit of clipping because the text is lengthy):
Hue only ever corresponds to hue and nothing else. So chrome carrying |
|
Also updated this PR to use I think including both changes makes sense regardless because we want to avoid that Chrome bug either way, and |
This PR updates all of our OKCLH colors to use `0` instead of `none` due to weird behavior in Chrome where using `color-mix` with colors using `none` produces unexpected results: <img width="1110" alt="image" src="https://github.com/user-attachments/assets/2272e494-500b-4f75-b5c1-d41c714f0339"> Both `none` and `0` behave as expected in Safari and Firefox so suspecting this is a bug in Chrome rather than spec'd behavior. Fixes tailwindlabs#14740 --------- Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
This PR updates all of our OKCLH colors to use
0instead ofnonedue to weird behavior in Chrome where usingcolor-mixwith colors usingnoneproduces unexpected results:Both
noneand0behave as expected in Safari and Firefox so suspecting this is a bug in Chrome rather than spec'd behavior.Fixes #14740