← Back to release summary

WebGL canvas color management

Category
Graphics
Type
Chromium catches up
Status
Enabled by default (Chrome 104)
Intent stage
Prepare to ship

Summary

Implementation of WebGL color management API WebGL allows specification of - the color space that its drawing buffer is - the color space that content should be converted to when importing as a texture This feature is to update our implementation to include this functionality. Prior to this feature, both of these defaulted to sRGB. Now they can also use "display-p3".

Motivation

The web is adding the ability to use colors outside of sRGB color space. This is possible using images and video. CSS color level 4 added CSS colors, and Canvas Color Management added it for 2D canvas. This enables non-sRGB color spaces for WebGL.

Standards & signals

Samples: https://ccameron-chromium.github.io/webgl-examples/p3.html

View on chromestatus.com