Revision 502495 of altGlyph

  • Revision slug: Web/SVG/Element/altGlyph
  • Revision title: altGlyph
  • Revision id: 502495
  • Created:
  • Creator: kscarfone
  • Is current revision? No
  • Comment Added SVG tags and {{SVGRef}}

Revision Content

{{ SVGRefElem() }}

The altGlyph element allows sophisticated selection of the glyphs used to render its child character data.

Usage context

Categories Text content element, Text content child element
Permitted content Any elements or character data.
Normative document SVG 1.1 (2nd Edition)



Global attributes

Specific attributes

  • {{ SVGAttr("x") }}
  • {{ SVGAttr("y") }}
  • {{ SVGAttr("dx") }}
  • {{ SVGAttr("dy") }}
  • {{ SVGAttr("rotate") }}
  • {{ SVGAttr("glyphRef") }}
  • {{ SVGAttr("format") }}
  • {{ SVGAttr("xlink:href") }}

DOM Interface

This element implements the SVGAltGlyphElement interface.

Browser compatibility

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 1.0 {{ CompatGeckoDesktop('2.0') }} [1] {{ CompatUnknown() }} {{ CompatOpera('10.6') }} {{ CompatSafari('4.0') }}
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support {{ CompatUnknown() }} {{ CompatGeckoMobile('2.0') }} [1] {{ CompatNo() }} {{ CompatOperaMobile('11.0') }} {{ CompatSafari('4.0') }}

[1] partial support, see bug 456286 and bug 571808.

The chart is based on these sources.

See also

  • {{ SVGElement("tspan") }}
  • {{ SVGElement("glyph") }}
  • {{ SVGElement("altGlyphDef") }}


Revision Source

<p>{{ SVGRefElem() }}</p>
<p>The <code>altGlyph</code> element allows sophisticated selection of the glyphs used to render its child character data.</p>
<h2 id="Usage_context">Usage context</h2>
<table class="standard-table">
   <th scope="row">Categories</th>
   <td>Text content element, Text content child element</td>
   <th scope="row">Permitted content</th>
   <td>Any elements or character data.</td>
   <th scope="row">Normative document</th>
   <td><a class="external" href="" title="">SVG 1.1 (2nd Edition)</a></td>
<h2 id="Example">Example</h2>
<h2 id="Attributes">Attributes</h2>
<h3 id="Global_attributes">Global attributes</h3>
 <li><a href="/en/SVG/Attribute#ConditionalProccessing" title="en/SVG/Attribute#ConditionalProccessing">Conditional processing attributes</a>&nbsp;»</li>
 <li><a href="/en/SVG/Attribute#Core" title="en/SVG/Attribute#Core">Core attributes</a>&nbsp;»</li>
 <li><a href="/en/SVG/Attribute#GraphicalEvent" title="en/SVG/Attribute#GraphicalEvent">Graphical event attributes</a>&nbsp;»</li>
 <li><a href="/en/SVG/Attribute#Presentation" title="en/SVG/Attribute#Presentation">Presentation attributes</a>&nbsp;»</li>
 <li><a href="/en/SVG/Attribute#XLink" title="en/SVG/Attribute#XLink">XLink attributes</a>&nbsp;»</li>
 <li>{{ SVGAttr("class") }}</li>
 <li>{{ SVGAttr("style") }}</li>
 <li>{{ SVGAttr("externalResourcesRequired") }}</li>
<h3 id="Specific_attributes">Specific attributes</h3>
 <li>{{ SVGAttr("x") }}</li>
 <li>{{ SVGAttr("y") }}</li>
 <li>{{ SVGAttr("dx") }}</li>
 <li>{{ SVGAttr("dy") }}</li>
 <li>{{ SVGAttr("rotate") }}</li>
 <li>{{ SVGAttr("glyphRef") }}</li>
 <li>{{ SVGAttr("format") }}</li>
 <li>{{ SVGAttr("xlink:href") }}</li>
<h2 id="DOM.C2.A0Interface">DOM&nbsp;Interface</h2>
<p>This element implements the <code><a href="/en/DOM/SVGAltGlyphElement" title="en/DOM/SVGAltGlyphElement">SVGAltGlyphElement</a></code> interface.</p>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop">
 <table class="compat-table">
    <th scope="col">Feature</th>
    <th scope="col">Chrome</th>
    <th scope="col">Firefox (Gecko)</th>
    <th scope="col">Internet Explorer</th>
    <th scope="col">Opera</th>
    <th scope="col">Safari</th>
    <td>Basic support</td>
    <td>{{ CompatGeckoDesktop('2.0') }} <a href="#supportGecko">[1]</a></td>
    <td>{{ CompatUnknown() }}</td>
    <td>{{ CompatOpera('10.6') }}</td>
    <td>{{ CompatSafari('4.0') }}</td>
<div id="compat-mobile">
 <table class="compat-table">
    <th>Firefox Mobile (Gecko)</th>
    <th>Opera Mobile</th>
    <th>Safari Mobile</th>
    <td>Basic support</td>
    <td>{{ CompatUnknown() }}</td>
    <td>{{ CompatGeckoMobile('2.0') }} <a href="#supportGecko">[1]</a></td>
    <td>{{ CompatNo() }}</td>
    <td>{{ CompatOperaMobile('11.0') }}</td>
    <td>{{ CompatSafari('4.0') }}</td>
<p id="supportGecko">[1] partial support, see <a href="" rel="external">bug 456286</a> and <a href="" rel="external">bug 571808</a>.</p>
<p>The chart is based on <a href="/en/SVG/Compatibility_sources" title="en/SVG/Compatibility sources">these sources</a>.</p>
<h2 id="See_also">See also</h2>
 <li>{{ SVGElement("tspan") }}</li>
 <li>{{ SVGElement("glyph") }}</li>
 <li>{{ SVGElement("altGlyphDef") }}</li>
Revert to this revision