Color management for 2D canvas
The optional colorSpace parameter of a 2D canvas's getContext() method chooses the color representation, such as "srgb" or "display-p3".
Status
Limited availability
MDN documentation
Specifications
- HTML (#concept-canvas-color-space), from HTML Workstream (WHATWG).
Browser support
- Chrome 92 Released on 2021-07-20
- Chrome Android 92 Released on 2021-07-20
- Edge 92 Released on 2021-07-22
- Firefox ❌ See bugzil.la/1841326
- Firefox for Android ❌
- 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 (51 months)
Surveys
Web Platform Tests (WPT)
View the latest WPT test results for this featureDeveloper votes
Do you need this feature?
Let us know by leaving a 👍 reaction on the feedback issue. Don't forget to also leave a comment explaining your specific use case.
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist