font-variant

  • Revision slug: SVG/Attribute/font-variant
  • Revision title: font-variant
  • Revision id: 2598
  • Created:
  • Creator: Jeremie
  • Is current revision? No
  • Comment 3 words added, 3 words removed

Revision Content

« SVG Attribute reference home

The font-variant attribute indicates whether the text is to be rendered using the normal glyphs for lowercase characters or using small-caps glyphs for lowercase characters.

As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see {{ cssxref("font-variant","CSS font-variant") }} for further information.

Usage context

Categories Presentation attribute
Value normal | small-caps | inherit
Animatable Yes
Normative document SVG 1.1 (2nd Edition)

Example

Elements

The following elements can use the font-variant attribute

See also

  • {{ cssxref("font-variant","CSS font-variant") }}

Revision Source

<p>« <a href="/en/SVG/Attribute" title="en/SVG/Attribute">SVG Attribute reference home</a></p>
<p>The <code>font-variant</code> attribute indicates whether the text is to be rendered using the normal glyphs for lowercase characters or using small-caps glyphs for lowercase characters.</p>
<p>As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see {{ cssxref("font-variant","CSS font-variant") }} for further information.</p>
<h2 id="Usage_context">Usage context</h2>
<table class="standard-table"> <tbody> <tr> <th scope="row">Categories</th> <td>Presentation attribute</td> </tr> <tr> <th scope="row">Value</th> <td><strong>normal</strong> | small-caps | inherit</td> </tr> <tr> <th scope="row">Animatable</th> <td>Yes</td> </tr> <tr> <th scope="row">Normative document</th> <td><a class="external" href="http://www.w3.org/TR/SVG11/text.html#FontVariantProperty" title="http://www.w3.org/TR/SVG11/text.html#FontVariantProperty">SVG 1.1 (2nd Edition)</a></td> </tr> </tbody>
</table>
<h2 id="Example">Example</h2>
<h2 id="Elements">Elements</h2>
<p>The following elements can use the <code>font-variant</code> attribute</p>
<ul> <li><a href="/en/SVG/Element#Text_content_elements" title="en/SVG/Element#Text_content_elements">Text content elements</a> »</li>
</ul>
<h2 id="See_also">See also</h2>
<ul> <li>{{ cssxref("font-variant","CSS font-variant") }}</li>
</ul>
Revert to this revision