Наши волонтёры ещё не перевели данную статью на Русский. Присоединяйтесь к нам и помогите закончить эту работу!
SVG Mask DOM interface
The SVGMaskElement
interface provides access to the properties of <mask>
elements, as well as methods to manipulate them.
Interface overview
Also implement | SVGElement , SVGTests , SVGLangSpace , SVGExternalResourcesRequired , SVGStylable , SVGUnitTypes |
---|---|
Methods | None |
Properties |
|
Normative document | SVG 1.1 (2nd Edition) |
Properties
Name | Type | Description |
---|---|---|
maskUnits |
SVGAnimatedEnumeration |
Corresponds to attribute maskUnits on the given <mask> element. Takes one of the constants defined in SVGUnitTypes |
maskContentUnits |
SVGAnimatedEnumeration |
Corresponds to attribute maskContentUnits on the given <mask> element. Takes one of the constants defined in SVGUnitTypes |
x |
SVGAnimatedLength |
Corresponds to attribute x on the given <mask> element. |
y |
SVGAnimatedLength |
Corresponds to attribute y on the given <mask> element. |
width |
SVGAnimatedLength |
Corresponds to attribute width on the given <mask> element. |
height |
SVGAnimatedLength |
Corresponds to attribute height on the given <mask> element. |
Methods
The SVGMaskElement
interface do not provide any specific methods.
Browser compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | (Yes) | (Yes) | 9.0 | (Yes) | (Yes) |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | Not supported | (Yes) | ? | (Yes) | (Yes) |
See also
<mask>
SVG Element