data-type

<hue-interpolation-method> — CSS reference

In polar color interpolation shorter, longer, increasing and decreasing hue specify how to travel around the hue circle. These do not apply to rectangular spaces.

Formal Syntax & Structure

css syntaxcss
background-image: linear-gradient(in hsl longer hue, red, blue);

Working Example

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