Color management for 2D canvas
Limited availability
The optional colorSpace
parameter of a 2D canvas's getContext()
method chooses the color representation, such as "srgb"
or "display-p3"
.
Compatibility
- Chrome 92 Released on 2021-07-20
- Chrome Android 92 Released on 2021-07-20
- Edge 92 Released on 2021-07-22
- Firefox ❌ Search for bugs Search for standards position
- Firefox for Android ❌ Search for bugs Search for standards position
- Safari 15.2 Released on 2021-12-13
- Safari on iOS 15.2 Released on 2021-12-13
Baseline availability blocked since December 2021 by Firefox (35 months)
Specifications
- HTML Standard (#concept-canvas-color-space), from HTML Workstream (WHATWG).