filterUnits

filterUnits attribute defines the coordinate system for the attributes x , y , width and height .

You can use this attribute with the following SVG elements:

用法注意事项

userSpaceOnUse | objectBoundingBox
默认值 objectBoundingBox
Animatable Yes
userSpaceOnUse

x , y , width and height represent values in the current coordinate system that results from taking the current user coordinate system in place at the time when the <filter> element is referenced (i.e., the user coordinate system for the element referencing the <filter> element via a filter 属性)。

objectBoundingBox

In that case, x , y , width and height represent fractions or percentages of the bounding box on the referencing element.

规范

规范 状态 注释
Filter Effects Module Level 1
The definition of 'filterUnits' in that specification.
工作草案 初始定义
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'filterUnits' in that specification.
推荐 初始定义

浏览器兼容性

BCD tables only load in the browser

Found a problem with this page?

最后修改: , 由 MDN 贡献者