mask: An element used to do masking

Description Available Attributes (Named Parameters) Available Content Elements (Unnamed Parameters)

Description

In SVG, you can specify that any other graphics object or <g> element can be used as an alpha mask for compositing the current object into the background. A mask is defined with the mask element. A mask is used/referenced using the mask property.

Available Attributes (Named Parameters)

Complementary Attributes

wh, xy

Conditional Processing Attributes

requiredExtensions, requiredFeatures, systemLanguage

Core Attributes

id, xml.base, xml.lang, xml.space

Filter Primitive Attributes

height, width, x, y

Presentation Attributes

clip.path, color.interpolation, color.rendering, cursor, enable.background, mask

Unclassified

class, externalResourcesRequired, maskContentUnits, maskUnits, style

Available Content Elements (Unnamed Parameters)

Animation Elements

animate, animateColor, animateMotion, animateTransform, set

Descriptive Elements

desc, metadata, title

Gradient Elements

linearGradient, radialGradient

Graphics Referencing Elements

image, use

Non-structural Container Elements

a, marker, mask, pattern, switch

Shape Elements

circle, ellipse, line, path, polygon, polyline, rect

Structural Container Elements

defs, g, svg, symbol

Text Content Elements

text

Uncategorized Elements

altGlyphDef, clipPath, color.profile, cursor, filter, font, font.face, foreignObject, script, style, view


mslegrand/svgR documentation built on Jan. 21, 2020, 2:59 p.m.