Your Search Results


    この記事はまだ日本語に翻訳されていません。MDN の翻訳はボランティアによって行われています。是非 MDN に登録し、私たちの力になって下さい。

    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.

    Note that the values of properties display and visibility have no effect on switch element processing. In particular, setting display to none on a child of a switch element has no effect on true/false testing associated with switch element processing.

    Usage context

    Categories Container element
    Permitted content Any number of the following elements, in any order:
    Animation elements »
    Descriptive elements »
    Shape elements »
    <a>, <foreignobject>, <g>, <image>, <svg>, <switch>, <text>, <use>
    Normative document SVG 1.1 (2nd Edition)



    Global attributes

    Specific attributes

    DOM Interface

    This element implements the SVGSwitchElement interface.

    Browser compatibility

    Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
    Basic support 1.0 1.8 9.0 8.0 3.0.4
    Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
    Basic support 3.0 ? 1.8 Not supported ? 3.0.4

    The chart is based on these sources.


    Contributors to this page: kscarfone, Longsonr, Manuel_Strehl, trevorh, Jeremie
    最終更新者: kscarfone,