data-type

<color-interpolation-method> — CSS reference

An interpolation method begins with in and a color space; polar spaces may also specify a hue path. It selects the interpolation space rather than the output display gamut.

Formal Syntax & Structure

css syntaxcss
background-image: linear-gradient(in oklab, red, blue);

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>&lt;color-interpolation-method&gt;</title><style>body{margin:0;background:white}#a{box-sizing:border-box}#a{background-image:linear-gradient(in oklab, red, blue)}</style><body><div id="a">Example</div></body></html>
CSS Reference