primitiveUnits

primitiveUnits attribute specifies the coordinate system for the various length values within the filter primitives and for the attributes that define the filter primitive subregion.

You can use this attribute with the following SVG elements:

用法注意事项

userSpaceOnUse | objectBoundingBox
默认值 userSpaceOnUse
Animatable Yes
userSpaceOnUse

This value indicates that any length values within the filter definitions represent values in 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

This value indicates that any length values within the filter definitions represent fractions or percentages of the bounding box on the referencing element.

规范

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

浏览器兼容性

BCD tables only load in the browser

Found a problem with this page?

最后修改: , 由 MDN 贡献者