大网数据广告活动
Web 标准与前端开发

`color-interpolation-filters` CSS property

· 52CE 我爱测

The **`color-interpolation-filters`** CSS property specifies the color space for imaging operations performed via SVG filter effects. If explicitly declared, the value of the CSS property overrides any value given in the element's color-interpolation-filters attribute.

The color-interpolation-filters CSS property specifies the color space for imaging operations performed via SVG filter effects. If explicitly declared, the value of the CSS property overrides any value given in the element's color-interpolation-filters attribute.

[!NOTE] The color-interpolation-filters property is only relevant to SVG filter operations. It has no effect on filter primitives like feOffset, feImage, feTile, and feFlood, but instead applies to the various filter effect elements (e.g., feBlend); see the SVG color-interpolation-filters page for a full list.

[!NOTE] It is important to remember that the SVG color-interpolation attribute has an initial value of sRGB, while color-interpolation-filters has an initial value of linearRGB. This means, in the default case, filter effect interpolations occur in a different color space than all other color interpolations.

Syntax

color-interpolation-filters: auto;
color-interpolation-filters: linearRGB;
color-interpolation-filters: sRGB;

/* Global values */
color-interpolation-filters: inherit;
color-interpolation-filters: initial;
color-interpolation-filters: revert;
color-interpolation-filters: revert-layer;
color-interpolation-filters: unset;

Values

This property is specified as one of the following keyword values:

  • linearRGB
    • : Indicates that color interpolation should occur in the linearized RGB color space as described in the sRGB specification. This is the default property value.
  • sRGB
    • : Indicates that color interpolation should occur in the gamma-encoded sRGB color space.
  • auto
    • : Indicates that the user agent can choose either the sRGB or linearRGB spaces for color interpolation. This option indicates that the author doesn't require that color interpolation occur in a particular color space.

Formal definition

Formal syntax

Specifications

Browser compatibility

See also

来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。

资料来源与适用范围

资料来源
MDN Web Docs / Mozilla 贡献者
适用范围
请按文中版本与环境说明核对
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 2.5

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。