Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
The 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 |
| Yes |
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 attribute).
objectBoundingBoxIn that case, x, y, width and height represent fractions or percentages of the bounding box on the referencing element.
| Filter Effects Module Level 1 # element-attrdef-filter-filterunits |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Mar 18, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.