property

Color interpolation filters — CSS reference

Sets the interpolation color space for applicable filter primitives. The initial value is linearRGB; primitives such as feFlood do not perform color interpolation themselves.

Formal Syntax & Structure

css syntaxcss
color-interpolation-filters: sRGB;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>color-interpolation-filters</title><style>body{margin:0;background:white}svg{display:block}#a{color-interpolation-filters:sRGB}</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><filter id="f" x="0" y="0" width="1" height="1"><feFlood id="a" flood-color="red"/></filter></defs><rect x="40" y="40" width="100" height="80" filter="url(#f)"/></svg></body></html>
CSS Reference