The <switch>
SVG element evaluates any requiredFeatures
, requiredExtensions
and systemLanguage
attributes on its direct child elements in order, and then renders the first child where these attributes evaluate to true.
Other direct children will be bypassed and therefore not rendered. If a child element is a container element, like <g>
, then its subtree is also processed/rendered or bypassed/not rendered.
Note: The display
and visibility
properties have no effect on <switch>
element processing. In particular, setting display:none
on a child has no effect on the true/false testing for <switch>
processing.