Skip to content

Commit 3b34c98

Browse files
dletoreygithub-actions[bot]dipikabh
authored
added display-p3-linear to Named color spaces (#42003)
* added display-p3-linear to Named color spaces and RGB color spaces glossary and the BCD of colo-interpolation-methods * Update files/en-us/web/css/reference/values/color-interpolation-method/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * updated the BCD location * Update files/en-us/glossary/color_space/index.md Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org> * Update files/en-us/glossary/color_space/index.md Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org>
1 parent e48a27c commit 3b34c98

File tree

2 files changed

+9
-4
lines changed
  • files/en-us
    • glossary/color_space
    • web/css/reference/values/color-interpolation-method

2 files changed

+9
-4
lines changed

files/en-us/glossary/color_space/index.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ The _sRGB_ color space (standard red, green, and blue) was created for the web,
1313

1414
## Named color spaces
1515

16-
The predefined [RGB color spaces](#rgb_color_spaces) include `srgb`, `srgb-linear`, `display-p3`, `a98-rgb`, `prophoto-rgb`, and `rec2020`. The predefined [CIELAB color spaces](#cielab_color_spaces) include `lab-d50` and `lab-d65`. The predefined [XYZ color spaces](#xyz_color_spaces) include `xyz-d50`, and `xyz-d65` (and `xyz`, an alias for `xyz-d65`).
16+
The predefined [RGB color spaces](#rgb_color_spaces) include `srgb`, `srgb-linear`, `display-p3`, `display-p3-linear`, `a98-rgb`, `prophoto-rgb`, and `rec2020`. The predefined [CIELAB color spaces](#cielab_color_spaces) include `lab-d50` and `lab-d65`. The predefined [XYZ color spaces](#xyz_color_spaces) include `xyz-d50`, and `xyz-d65` (and `xyz`, an alias for `xyz-d65`).
1717

18-
Color spaces are either [rectangular or polar](https://ericportis.com/posts/2024/okay-color-spaces/). Rectangular color spaces include `srgb`, `srgb-linear`, `display-p3`, `a98-rgb`, `prophoto-rgb`, `rec2020`, `lab`, `oklab`, `xyz-d50`, and `xyz-d65` (or `xyz`). The polar color spaces include `hsl`, `hwb`, `lch`, and `oklch`.
18+
Color spaces are either [rectangular or polar](https://ericportis.com/posts/2024/okay-color-spaces/). Rectangular color spaces include `srgb`, `srgb-linear`, `display-p3`, `display-p3-linear`, `a98-rgb`, `prophoto-rgb`, `rec2020`, `lab`, `oklab`, `xyz-d50`, and `xyz-d65` (or `xyz`). The polar color spaces include `hsl`, `hwb`, `lch`, and `oklch`.
1919

2020
### RGB color spaces
2121

@@ -36,7 +36,10 @@ The `rgb()` color function is not the only color function that can represent the
3636
- : The predefined linear-light sRGB color space, `srgb-linear`, is the same as `srgb` except that the transfer function is linear-light with no gamma-encoding. The `srgb-linear` color space accepts the three `r`, `g`, and `b` values as numeric parameters, with in-gamut colors ranging from `0` to `1`. The whitepoint is D65.
3737

3838
- `display-p3` color space
39-
- : Defined by Apple, the [**Display P3**](https://www.color.org/chardata/rgb/DisplayP3.xalter), color space combines the DCI-P3 color gamut, the D65 whitepoint, and sRGB gamma curve. It is a wide gamut space typical of current wide-gamut monitors, enabling more vibrant greens and reds than the sRGB color gamut. The `display-p3` is based on `r`, `g`, and `b`, with in-gamut values ranging from `0` to `1`. The whitepoint is D65.
39+
- : Defined by Apple, the [**Display P3**](https://www.color.org/chardata/rgb/DisplayP3.xalter), color space combines the DCI-P3 color gamut, the D65 whitepoint, and sRGB gamma curve. It is a wide gamut space typical of current wide-gamut monitors, enabling more vibrant greens and reds than the sRGB color gamut. The `display-p3` space is based on `r`, `g`, and `b` channels, with in-gamut values ranging from `0` to `1`. The whitepoint is D65.
40+
41+
- `display-p3-linear` color space
42+
- : The `display-p3-linear` predefined color space is similar to `display-p3`, except that it uses a linear-light transfer function and has no gamma-encoding, which allows for a higher precision in the colors displayed. The `display-p3-linear` space is based on `r`, `g`, and `b` channels, with in-gamut values ranging from `0` to `1`. The whitepoint is D65.
4043

4144
- `a98-rgb` color space
4245
- : `a98-rgb` is the Adobe® 1998 RGB color space designed to represent all the CMYK colors as RGB. About 50% of the visible colors specified by the [CIELab color space](#cielab_color_spaces) can be achieved, encompassing more cyan-green hues than other RGB color spaces. In-gamut `r`, `g`, and `b` values range from `0` to `1`. The transfer curve is a gamma function, close to but not exactly 1/2.2. The whitepoint is D65.

files/en-us/web/css/reference/values/color-interpolation-method/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
title: <color-interpolation-method>
33
slug: Web/CSS/Reference/Values/color-interpolation-method
44
page-type: css-type
5-
browser-compat: css.types.color.color-mix
5+
browser-compat:
6+
- css.types.color.color-mix
7+
- css.types.color.color.display-p3-linear
68
spec-urls: https://drafts.csswg.org/css-color/#interpolation-space
79
sidebar: cssref
810
---

0 commit comments

Comments
 (0)