docs.rodeo

MDN Web Docs mirror

color-gamut

{{CSSRef}} 

The color-gamut CSS media feature is used to apply CSS styles based on the approximate range of color {{glossary("gamut")}}  supported by the {{glossary("user agent")}}  and the output device.

Syntax

The color-gamut feature is specified as one of the following {{glossary("color space", "color spaces")}}  as keyword values:

Examples

HTML

<p>This is a test.</p>

CSS

p {
  padding: 10px;
  border: solid;
}

@media (color-gamut: srgb) {
  p {
    background: #f4ae8a;
  }
}

Result

{{EmbedLiveSample("Examples")}} 

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN