SVGClipPathElement

Baseline 已廣泛支援

此特性已相當成熟,可在許多裝置和瀏覽器版本上使用。自 ⁨2015 年 7 月⁩以來,各瀏覽器均已提供此特性。

SVGClipPathElement 介面提供了對 <clipPath> 元素的屬性的訪問,以及操作這些元素的方法。

EventTarget Node Element SVGElement SVGClipPathElement

例項屬性

此介面還繼承了其父介面 SVGElement 的屬性。

SVGClipPathElement.clipPathUnits 只讀

返回一個 SVGAnimatedEnumeration,它對應於關聯的 <clipPath> 元素的 clipPathUnits 屬性。它接受 SVGUnitTypes 中定義的常量之一。

SVGClipPathElement.transform 只讀

返回一個 SVGAnimatedTransformList,它對應於關聯的 <clipPath> 元素的 transform 屬性。

例項方法

此介面不實現任何特定方法,但繼承了其父級 SVGElement 的方法。

規範

規範
CSS 蒙版模組 Level 1
# 介面 SVGClipPathElement

瀏覽器相容性

另見