filterUnits

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.

filterUnits 属性定义了 xywidthheight 属性的坐标系。

该属性可用于以下 SVG 元素:

使用说明

userSpaceOnUse | objectBoundingBox
默认值 objectBoundingBox
动画性
userSpaceOnUse

xywidthheight 表示当前坐标系中的数值,该坐标系基于引用 <filter> 元素时的用户坐标系(即通过 filter 属性引用 <filter> 元素的元素所处的用户坐标系)。

objectBoundingBox

在这种情况下,xywidthheight 表示引用元素边界框的分数或百分比。

规范

Specification
Filter Effects Module Level 1
# element-attrdef-filter-filterunits

浏览器兼容性

BCD tables only load in the browser