Skip to content

Commit 03f3e6e

Browse files
authored
Revert "Add srgb-linear, display-p3-linear, and rec2020-linear color spaces (#42)"
This reverts commit e9ad5e5.
1 parent e9ad5e5 commit 03f3e6e

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

CanvasColorSpaceProposal.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,8 @@ IDL:
3535

3636
enum CanvasColorSpaceEnum {
3737
"srgb", // default
38-
"srgb-linear",
3938
"display-p3",
40-
"display-p3-linear",
41-
"rec2020",
42-
"rec2020-linear",
39+
"rec-2020",
4340
};
4441

4542
enum CanvasStorageFormatEnum {
@@ -53,11 +50,8 @@ enum CanvasStorageFormatEnum {
5350

5451
interface CanvasColorSpace {
5552
const CanvasColorSpaceEnum srgb = "srgb";
56-
const CanvasColorSpaceEnum srgbLinear = "srgb-linear";
5753
const CanvasColorSpaceEnum displayP3 = "display-p3";
58-
const CanvasColorSpaceEnum displayP3Linear = "display-p3-linear";
59-
const CanvasColorSpaceEnum rec2020 = "rec2020";
60-
const CanvasColorSpaceEnum rec2020Linear = "rec2020-linear";
54+
const CanvasColorSpaceEnum rec2020 = "rec-2020";
6155
};
6256

6357
interface CanvasStorageFormat {
@@ -240,7 +234,7 @@ The ``getImageData`` method is responsible for converting the data from the canv
240234

241235
#### Selecting the best color space match for the user agent's display device
242236
<pre>
243-
var colorSpace = window.matchMedia("(color-gamut: rec2020)").matches ? "rec2020" :
237+
var colorSpace = window.matchMedia("(color-gamut: rec2020)").matches ? "rec-2020" :
244238
(window.matchMedia("(color-gamut: p3)").matches ? "display-p3" : "srgb");
245239
</pre>
246240

@@ -263,9 +257,7 @@ Authors of games and imaging apps are expected to be enthusiastic adopters.
263257

264258
* Should context creation throw on an unrecognized, non-undefined creation attribute?
265259

266-
* The [Media Query APIs](https://www.w3.org/TR/mediaqueries-4/) use the names "srgb" and "p3", while the [CSS Color Module Level 4](https://www.w3.org/TR/css-color-4/#predefined) uses the names "sRGB" and "display-p3". This divergence could be confusing.
267-
268-
* The [CSS Color Module Level 4](https://www.w3.org/TR/css-color-4/#predefined) specification does not include srgb-linear, display-p3-linear, or rec2020-linear.
260+
* The [Media Query APIs](https://www.w3.org/TR/mediaqueries-4/) use the names "p3" and "rec2020", while the [CSS Color Module Level 4](https://www.w3.org/TR/css-color-4/#predefined) uses the names "display-p3" and "rec-2020". This divergence could be confusing.
269261

270262
## Proposal History
271263

0 commit comments

Comments
 (0)