switch: An element used as a switch description=

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

Description

The switch element evaluates the requiredFeatures, requiredExtensions and systemLanguage attributes on its direct child elements in order, and then processes and renders the first child for which these attributes evaluate to true. All others will be bypassed and therefore not rendered. If the child element is a container element such as a <g>, then the entire subtree is either processed/rendered or bypassed/not rendered.

Available Attributes (Named Parameters)

Animation Event Attributes

onload

Conditional Processing Attributes

requiredExtensions, requiredFeatures, systemLanguage

Core Attributes

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

Graphical Event Attributes

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

Presentation Attributes

clip.path, color.interpolation, color.rendering, cursor, display, enable.background, filter, mask, opacity

Unclassified

class, externalResourcesRequired, style, transform

Available Content Elements (Unnamed Parameters)

Animation Elements

animate, animateColor, animateMotion, animateTransform, set

Descriptive Elements

desc, metadata, title

Graphics Referencing Elements

image, use

Non-structural Container Elements

a, switch

Shape Elements

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

Structural Container Elements

g, svg

Text Content Elements

text

Uncategorized Elements

foreignObject


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