clip-path and mask attributes for all elements[1]
.clipPath declaration level:id: the id of the clipping pathtransform: the optional transform to apply to the clipping pathclipPathUnits: the optional units for the specification of the clipping pathrectcircleellipsepolylinepolygonpathtext<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <clipPath id="cut-off-bottom"> <rect x="0" y="0" width="200" height="100" /> </clipPath> </defs> <circle cx="100" cy="100" r="100" clip-path="url(#cut-off-bottom)" /> </svg>Will have the following result:
clipPathUnits attribute is not supportedclip-rule attribute is supported only for the path elementCopyright 2021-2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD-3-Clause License