clipPathUnits

The clipPathUnits attribute indicates which coordinate system to use for the contents of the <clipPath> element.

You can use this attribute with the following SVG elements:

Example

clipPath

For <clipPath>, clipPathUnits define the coordinate system in use for the content of the element.

Value userSpaceOnUse | objectBoundingBox
Default value userSpaceOnUse
Animatable Yes
userSpaceOnUse

This value indicates that all coordinates inside the <clipPath> element refer to the user coordinate system as defined when the clipping path was created.

objectBoundingBox

This value indicates that all coordinates inside the <clipPath> element are relative to the bounding box of the element the clipping path is applied to. It means that the origin of the coordinate system is the top left corner of the object bounding box and the width and height of the object bounding box are considered to have a length of 1 unit value.

Specifications

Specification
CSS Masking Module Level 1
# element-attrdef-clippath-clippathunits