The color-gamut CSS @media media feature can be used to apply styles based on the approximate range of colors that are supported by the user agent and the output device.
The color-gamut feature is specified as a keyword value chosen from the list below.
srgbp3rec2020<p>This is a test.</p>
@media (color-gamut: srgb) {
p {
background: #f4ae8a;
}
} | Specification | Status | Comment |
|---|---|---|
| Media Queries Level 4 The definition of 'color-gamut' in that specification. | Working Draft | Initial definition. |
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | 58 | No support | No support | 45 | (Yes) |
| Feature | Android Webview | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|
| Basic support | No support | 58 | No support | No support | 45 | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/color-gamut