docs.rodeo

MDN Web Docs mirror

@color-profile

{{CSSRef}} 

The @color-profile CSS at-rule defines and names a color profile which can later be used in the {{cssxref("color_value/color", "color()")}}  function to specify a color.

Syntax

@color-profile --swop5c {
  src: url("https://example.org/SWOP2006_Coated5v2.icc");
}

Descriptors

Formal syntax

{{csssyntax}} 

Examples

This example is from the specification and demonstrates using offset printing to ISO 12647-2:2004 using the CGATS/SWOP TR005 2007 characterization data on grade 5 paper with an ink limit of 300% Total Area Coverage, and medium gray component replacement (GCR).

The src descriptor specifies the URL to retrieve the color-profile information from.

@color-profile --swop5c {
  src: url("https://example.org/SWOP2006_Coated5v2.icc");
}
.header {
  background-color: color(--swop5c 0% 70% 20% 0%);
}

Specifications

{{Specifications}} 

Browser compatibility

There is no browser implementing this feature.

In this article

View on MDN