property
Color interpolation — CSS reference
Selects a color interpolation space for applicable SVG color operations, including gradients. Linear-light RGB interpolation differs from interpolation of gamma-encoded sRGB components.
Formal Syntax & Structure
css syntaxcss
color-interpolation: linearRGB;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>color-interpolation</title><style>body{margin:0;background:white}svg{display:block}#a{color-interpolation:linearRGB}linearGradient{color-interpolation:linearRGB}</style><body><svg xmlns="http://www.w3.org/2000/svg" width="240" height="160" viewBox="0 0 240 160" role="img" aria-label="SVG styling example"><defs><linearGradient id="g"><stop id="a" offset="0" stop-color="red"/><stop offset="1" stop-color="blue"/></linearGradient></defs><rect x="0" y="0" width="200" height="120" fill="url(#g)"/></svg></body></html>