gradientUnits
gradientUnits is an attribute on SVG gradient elements (such as linearGradient and radialGradient) that specifies the coordinate system used to interpret the gradient’s geometry. It accepts two values: objectBoundingBox and userSpaceOnUse. The default is objectBoundingBox when the attribute is not present.
In objectBoundingBox mode, gradient coordinates are defined as fractions of the target element’s bounding box. For
In userSpaceOnUse mode, gradient coordinates are defined in the current user coordinate system, i.e., in absolute
gradientUnits interacts with gradientTransform, which can be used to rotate, scale, or translate the gradient after