facelessuser / coloraide

A library to aid in using colors
https://facelessuser.github.io/coloraide
MIT License
195 stars 12 forks source link

Docs: Previews in other gamuts inconsistent on some browsers (upstream issue) #301

Closed facelessuser closed 1 year ago

facelessuser commented 1 year ago

This is a known issue and I am mainly opening this issue for others to see. There is currently nothing we can do as this is a browser issue, not a ColorAide documentation issue. Safari, by far, has the best support for modern CSS colors at this time.

If it turns out we can mitigate issues in some way, we will. Currently, if detected, we will use the gamut detected by CSS (sRGB, Display P3, or Rec. 2020). Colors within the detected gamut will not be gamut-mapped, but colors outside the gamut will. Browsers, when interpolating, may restrict the gamut even further (incorrectly) but there is nothing we can do. Safari has the best support and will give people the least issues.

facelessuser commented 1 year ago

Chrome seems to be interpolating the colors properly now. Firefox doesn't seem to be displaying P3 at all yet (limited to sRGB), but it is consistent. I think we can close this for now.