8000 csswg-drafts/css-text-4/Overview.bs at 6be80c040c46e881357fdb515e27e729e5c91b02 · w3c/csswg-drafts · GitHub
Skip to content

Latest commit

 

History

History
1329 lines (1118 loc) · 43.9 KB

File metadata and controls

1329 lines (1118 loc) · 43.9 KB
<tr>
<th>Percentages:
<td>N/A
<tr>
<th>Media:
<td>visual
<tr>
<th>Computed&#160;value:
<td>specified value
</table>
This property controls spacing between adjacent characters
on the same line within the same inline formatting context
using a set of character-class-based rules.
Such spacing can either be created between or trimmed from the affected glyphs.
Values are defined as follows:
<dl dfn-for=text-spacing dfn-type=value>
<dt><dfn>normal</dfn>
<dd>
Specifies the baseline behavior,
equivalent to ''space-start allow-end trim-adjacent''.
<dt><dfn>none</dfn>
<dd>
Turns off all text-spacing features.
All fullwidth characters are set with full-width glyphs.
<dt><dfn>ideograph-alpha</dfn>
<dd>
Creates 1/4em extra spacing between runs of
<a>ideographs</a> and <a>non-ideographic letters</a>.
Note: A commonly used algorithm for determining this behavior is specified in [[JLREQ]].
<dt><dfn>ideograph-numeric</dfn>
<dd>
Creates 1/4em extra spacing between runs of
<a>ideographs</a> and <a>non-ideographic numerals</a> glyphs.
Note: A commonly used algorithm for determining this behavior is specified in [[JLREQ]].
<dt><dfn>punctuation</dfn>
<dd>
Creates extra non-breaking spacing around punctuation as required by language-specific typographic conventions.
In this level, if the element's content language is French,
narrow no-break space (U+202F) and no-break space (U+00A0) is inserted
where required by <a href="http://unicode.org/udhr/n/notes_fra.html">French typographic guidelines</a>.
Otherwise this value has no effect.
However future specifications may add automatic spacing behavior for other languages.
<dt><dfn>space-start</dfn>
<dd>
Set <a>fullwidth opening punctuation</a> with full-width glyphs (spaced)
at the start of each line.
<dt><dfn>trim-start</dfn>
<dd>
Set <a>fullwidth opening punctuation</a> with half-width glyphs (flush)
at the start of each line.
<dt><dfn>allow-end</dfn>
<dd>
Set <a>fullwidth closing punctuation</a> with half-width glyphs (flush)
at the end of each line
if it does not otherwise fit prior to justification;
otherwise set the punctuation with full-width glyphs.
<dt><dfn>space-end</dfn>
<dd>
Set <a>fullwidth opening punctuation</a> with full-width glyphs (spaced)
at the start of each line.