preserveAlpha

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

We’d love to hear your thoughts on the next set of proposals for the JavaScript language. You can find a description of the proposals here.
Please take two minutes to fill out our short survey.

preserveAlpha 属性表示<feConvolveMatrix> 元素怎样处透明度。

取值为 false 表示 feConvolveMatrix 元素将应用在包括透明度通道的所有的通道。这是默认的选项。

取值为 true 表示 feConvolveMatrix 仅应用在颜色通道。

使用说明

类别 None
true | false
可变性 Yes

示例

元素

下列元素可以使用 preserveAlpha 属性

规范

Specification
Filter Effects Module Level 1
# element-attrdef-feconvolvematrix-preservealpha