Update uses of `PredefinedColorSpace` to include `srgb-linear` and `display-p3-linear`
- Dominant language
- Markdown
- Stars
- 11k
- Forks
- 23.2k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 331
Description
### MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getContextAttributes#colorspace
### What specific section or headline is this issue about?
colorSpace
### What information was incorrect, unhelpful, or incomplete?
In [this PR](https://github.com/whatwg/html/pull/11529) that is landing presently, we are adding two more entries to the `PredefinedColorSpace` enum.
MDN doesn't currently have a page for `PredefinedColorSpace`. Rather, each instance where it is used lists all possible enum values.
I believe that the exhaustive list is:
* [HTMLCanvasElement getContext](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext#colorspace)
* [2D canvas getContextAttributes](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getContextAttributes#colorspace)
* [WebGL unpackColorSpace](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/unpackColorSpace)
* [WebGL drawingBufferColorSpace](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawingBufferColorSpace)
* [ImageData attribute](https://developer.mozilla.org/en-US/docs/Web/API/ImageData/colorSpace)
* [ImageData constructor](https://developer.mozilla.org/en-US/docs/Web/API/ImageData/ImageData#colorspace)
* [WebGPU importExternalTexture](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/importExternalTexture#colorspace)
* [WebGPU copyExternalImageToTexture](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/copyExternalImageToTexture#colorspace)
* [WebGPU canvas configuration](https://developer.mozilla.org/en-US/docs/Web/API/GPUCanvasContext/configure#colorspace)
### What did you expect to see?
Each instance just includes `srgb` and `display-p3`. The spaces `srgb-linear` and `display-p3-linear` need to be added.
### Do you have any supporting links, references, or citations?
_No response_
### Do you have anything more you want to share?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.