word-spacing

  • Revision slug: Web/SVG/Attribute/word-spacing
  • Revision title: word-spacing
  • Revision id: 426779
  • Created:
  • Creator: Jeremie
  • Is current revision? Yes
  • Comment page created, 150 words addedMoved From SVG/Attribute/word-spacing to Web/SVG/Attribute/word-spacing

Revision Content

« SVG Attribute reference home

The word-spacing attribute specifies spacing behavior between words.

For SVG, if a <length> is provided without a unit identifier (e.g., an unqualified number such as 128), the browser processes the <length> as a width value in the current user coordinate system.

If a <length> is provided with one of the unit identifiers (e.g., .25em or 1%), then the browser converts the <length> into a corresponding value in the current user coordinate system.

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

Usage context

Categories Presentation attribute
Value normal | <length> | inherit
Animatable Yes
Normative document SVG 1.1 (2nd Edition)

{{ page("/en/SVG/Content_type","Length") }}

Elements

The following elements can use the word-spacing attribute

See also

  • {{ cssxref("word-spacing","CSS word-spacing") }}

Revision Source

<p>« <a href="/en/SVG/Attribute" title="en/SVG/Attribute">SVG Attribute reference home</a></p>
<p>The <code>word-spacing</code> attribute specifies spacing behavior between words.</p>
<p>For SVG, if a <a href="/en/SVG/Content_type#Length" title="https://developer.mozilla.org/en/SVG/Content_type#Length">&lt;length&gt;</a> is provided without a unit identifier (e.g., an unqualified number such as 128), the browser processes the <a href="/en/SVG/Content_type#Length" title="https://developer.mozilla.org/en/SVG/Content_type#Length">&lt;length&gt;</a> as a width value in the current user coordinate system.</p>
<p>If a <a href="/en/SVG/Content_type#Length" title="https://developer.mozilla.org/en/SVG/Content_type#Length">&lt;length&gt;</a> is provided with one of the unit identifiers (e.g., .25em or 1%), then the browser converts the <a href="/en/SVG/Content_type#Length" title="https://developer.mozilla.org/en/SVG/Content_type#Length">&lt;length&gt;</a> into a corresponding value in the current user coordinate system.</p>
<p>As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see {{ cssxref("word-spacing","CSS word-spacing") }} 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>normal | <a href="/en/SVG/Content_type#Length" title="https://developer.mozilla.org/en/SVG/Content_type#Length">&lt;length&gt;</a> | <strong title="this is the default value">inherit</strong></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#WordSpacingProperty" title="http://www.w3.org/TR/SVG11/text.html#WordSpacingProperty">SVG 1.1 (2nd Edition)</a></td> </tr> </tbody>
</table>
<p>{{ page("/en/SVG/Content_type","Length") }}</p>
<h2 id="Elements">Elements</h2>
<p>The following elements can use the <code>word-spacing</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("word-spacing","CSS word-spacing") }}</li>
</ul>
Revert to this revision