eyedropper-api icon indicating copy to clipboard operation
eyedropper-api copied to clipboard

Be explicit about how the eyedropper handles wide-gamut displays

Open BoCupp-Microsoft opened this issue 4 years ago • 3 comments

Given all the discussion in the TAG review about wide-gamut displays, could you be explicit about how the out-of-gamut mapping takes place and how an in-gamut sampled color will round-trip when displayed using CSS?

BoCupp-Microsoft avatar Aug 12 '21 00:08 BoCupp-Microsoft

Also see https://github.com/whatwg/html/issues/3400

zcorpan avatar Aug 12 '21 20:08 zcorpan

Echo’ing comments from #3400, it seems like it might be nice to have a platform-wide Color primitive that represents a color of any colorspace (and possibly deals with conversions as well). This proposal could then expose a Color instance instead of the custom object with (initially only) an sRGBHex property on it.

mathiasbynens avatar Aug 13 '21 12:08 mathiasbynens

@leaverou just pointed me towards https://github.com/WICG/color-api, which sounds like the proposal I was dreaming about in the previous comment :)

mathiasbynens avatar Aug 13 '21 12:08 mathiasbynens