Formalize that the default color space for 2D canvases and ImageData is sRGB. Clarify that 2D canvas is fully color managed (that all inputs are converted to the canvas color space). These were previously convention and not clearly specified. Add parameters to specify a non-sRGB color space when creating a 2D canvas or an ImageData. Add support for the Display P3 color space for these parameters.
Content displayed by 2D canvas is currently limited to the sRGB color space, which is less than the capabilities of modern displays and cameras. This feature allows creating a 2D canvas that is in the display-p3 color space. This also clears up several points of ambiguity about the color behavior 2D canvas. This has been a frequent feature request.
Status in Chromium
Enabled by default (tracking bug) in:
- Chrome for desktop release 92
- Chrome for Android release 92
- Android WebView release 92
Consensus & Standardization
Search tagscanvas, display-p3, color space,
Last updated on 2021-07-31