Open jchen10 opened 2 years ago
Note for anyone who ends up looking into this test: the spec has been a bit in flux here, so be sure to check the latest state of the spec and open PRs first (https://github.com/gpuweb/gpuweb/pull/4500, https://github.com/gpuweb/gpuweb/pull/4526, etc.)
ALSO: note that the harnesses for running reftests in each browser most likely will not capture HDR values, and will clamp them to SDR. This may also be true of WCG (depending on whether reftests are checked in sRGB or in the color space of the display). So for robust testing, each browser may need its own tests.
Test rgba16float values which are out of gamut of the canvas but under SDR luminance. These should not be clamped to the gamut of the canvas (e.g. srgb), but interpreted as extended values and displayed the same way as the same colors in a wider-gamut canvas (e.g. display-p3).
Test rgba16float values which are above SDR luminance (e.g. srgb (2,2,2,1)). These SHOULD be clamped to SDR 1.0, not displayed as HDR.