- From: James Stuckey Weber via GitHub <sysbot+gh@w3.org>
- Date: Thu, 13 Jun 2024 14:00:58 +0000
- To: public-css-archive@w3.org
> Clipping Rec.2020 colors to, e.g., sRGB sometimes produces significant lightness shifts vs doing what's in the spec now (which tries to preserve lightness above all else). Here's a ~worst-case, real-world example of how different results can be, even post-mapping-to-Rec.2020: https://codepen.io/eeeps/pen/zYQPqKM An alternative could be that we map to either rec2020 or p3, choosing the smallest that has a gamut larger than the user's monitor, and then clip from there. Here's a fork of your codepen, with the addition of an example where we first map to p3, then clip to sRGB. https://codepen.io/jamessw/pen/abrVLvQ I added the Lightness Delta in `oklab`, and for that specific super red, this method would reduce the lightness shift by about half. For colors starting outside of rec2020, the lightness preservation by mapping to p3 before clipping would be even more drastic. -- GitHub Notification of comment by jamesnw Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9449#issuecomment-2165765061 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 13 June 2024 14:00:58 UTC