SVGFECompositeElement: width 属性
SVGFECompositeElement 接口的只读属性 width 描述了 SVG 滤镜原语的水平尺寸,其类型为 SVGAnimatedLength。
它反映了 <feComposite> 元素的 width 滤镜原语属性。<feComposite> SVG 滤镜原语使用 Porter-Duff 合成操作组合两个输入图像。该属性是相对于滤镜区域宽度的 <length> 或 <percentage>。默认值为 100%。属性值是以用户坐标系统单位表示的长度。
值
一个 SVGAnimatedLength 对象。
示例
js
const feComposite = document.querySelector("feComposite");
const horizontalSize = feComposite.width;
console.log(horizontalSize.baseVal.value); // the `width` value
规范
| 规范 |
|---|
| 滤镜效果模块第 1 级 # dom-svgfilterprimitivestandardattributes-width |
浏览器兼容性
加载中…
另见
SVGFECompositeElement.height- CSS
<blend-mode>数据类型 - CSS
mix-blend-mode属性