use: An element used for taking another element as a template

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

Description

The use element takes nodes from within the SVG document, and duplicates them somewhere else. The effect is the same as if the nodes were deeply cloned into a non-exposed DOM, and then pasted where the use element is, much like anonymous content and XBL. Since the cloned nodes are not exposed, care must be taken when using CSS to style a use element and its hidden descendants. CSS attributes are not guaranteed to be inherited by the hidden, cloned DOM unless you explicitly request it using CSS inheritance.

Available Attributes (Named Parameters)

Animation Event Attributes

onload

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

Graphical Event Attributes

onactivate, onclick, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup

Presentation Attributes

clip.path, clip.rule, color.interpolation, color.rendering, cursor, display, filter, mask, opacity, pointer.events, visibility

Unclassified

class, externalResourcesRequired, style, transform

Xlink Attributes

xlink.actuate, xlink.arcrole, xlink.href, xlink.role, xlink.show, xlink.title, xlink.type

Available Content Elements (Unnamed Parameters)

Animation Elements

animate, animateColor, animateMotion, animateTransform, set

Descriptive Elements

desc, metadata, title


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