userSpaceOnUse
UserSpaceOnUse is a keyword used in SVG to specify the coordinate system for certain painting and filtering attributes. It appears as a value for coordinate-system related attributes such as gradientUnits, patternUnits, and filter primitiveUnits. When set to userSpaceOnUse, coordinates are interpreted in the SVG’s user coordinate system—the global coordinate system established by the root element—rather than being relative to the bounding box of the element that references the gradient, pattern, or filter.
In practical terms, for gradients, using userSpaceOnUse means that the gradient’s coordinates (for linearGradient: x1, y1,
The default behavior for these attributes is typically objectBoundingBox, where coordinates are normalized to the element’s