SVGFEDropShadowElement: result 属性
SVGFEDropShadowElement 接口的只读属性 result,描述了一个 SVG 滤镜原语被赋的名称,类型为 SVGAnimatedString。
它反映了 result 属性。属性值是一个 <custom-ident>。如果提供了该属性,则在同一 <filter> 元素内的后续滤镜原语上,可以使用 in 属性来引用由该滤镜原语处理产生的图形。
如果没有定义 result 属性,则滤镜的 result.baseVal 和 result.animVal 为空字符串。并且 <feDropShadow> 滤镜的输出仅在后续滤镜原语没有为其 in 属性提供值时,才可作为隐式输入供重用。
值
示例
js
const feDropShadowElement = document.querySelector("feDropShadow");
const filterName = feDropShadowElement.result;
console.log(filterName.baseVal); // the filter's assigned name
规范
| 规范 |
|---|
| 滤镜效果模块第 1 级 # dom-svgfilterprimitivestandardattributes-result |
浏览器兼容性
加载中…
另见
SVGFEDropShadowElement.in1<custom-ident>数据类型- CSS
drop-shadow()函数 - CSS
box-shadow属性 - CSS
text-shadow属性 - CSS
<blend-mode>数据类型 - CSS
mix-blend-mode属性