Skip to content

Commit 8a9c0a7

Browse files
committed
Improve text-combine: upright definition
1 parent f19565c commit 8a9c0a7

1 file changed

Lines changed: 16 additions & 12 deletions

File tree

css3-writing-modes/Overview.src.html

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ <h2 id="text-combine">Glyph Composition: the 'text-combine' property</h2>
725725
</tr>
726726
<tr>
727727
<th>Applies to:</th>
728-
<td>inline elements</td>
728+
<td>non-replaced inline elements</td>
729729
</tr>
730730
<tr>
731731
<th>Inherited:</th>
@@ -747,22 +747,28 @@ <h2 id="text-combine">Glyph Composition: the 'text-combine' property</h2>
747747
</table>
748748

749749
<p>This property allows the combination of multiple characters into the
750-
space of a single glyph. Values have the following meanings:</p>
750+
space of a single character. For text layout purposes, e.g. bidi
751+
ordering, line-breaking, emphasis marks, text-decoration, etc. the
752+
resulting composition is treated as a single glyph representing the
753+
Object Replacement Character U+FFFC. Values have the following
754+
meanings:</p>
751755

752756
<dl>
753757
<dt><dfn title="text-combine:none">none</dfn>
754758
<dd>No special processing.</dd>
755759
<dt><dfn title="text-combine:cluster">cluster</dfn>
756760
<dd>Display the text contents of the element in a single 1em square
757-
using the Japanese "kumoji" rules. [[JISX4051]]
758-
<span class="issue">This doesn't appear in the JLReq document, so
759-
we can probably drop this value for now.</span>
761+
using the Japanese "kumoji" rules. [[JISX4051]] The baseline of
762+
the composition should be chosen to either match the baseline
763+
of a typical ideographic character in the element's font, or to
764+
center the composition between the content edges of its parent
765+
inline box.
766+
<span class="issue">This doesn't appear in the JLReq document.</span>
760767
</dd>
761768
<dt><dfn title="text-combine:upright">upright</dfn>
762769
<dd><p>In vertical writing mode, attempt to display the text contents
763770
of the element horizontally within the vertical line box, ideally
764771
within the space of one ideographic character (1em square), as follows:
765-
766772
<p>If the UA has compressed glyphs available for the contents of the
767773
element, then it should use those glyphs to attempt sizing the
768774
contents to 1em square. For example, a single-digit number should
@@ -771,14 +777,12 @@ <h2 id="text-combine">Glyph Composition: the 'text-combine' property</h2>
771777
available, else halfwidth glyphs), etc. The glyphs are stacked
772778
horizontally (similar to the contents of an inline-box with a
773779
horizontal writing mode and a line-height of 1em) and the baseline
774-
of the result chosen such that it is centered between the content
775-
edges of its parent inline box.
776-
780+
of the resulting composition chosen such that it is centered between
781+
the content edges of its parent inline box.
777782
<p>If the length of the element's contents exceeds the element's used
778783
line-height, then its contents are instead rendered as if
779-
''text-combine'' were ''none'' and ''text-orientation'' were
780-
''upright''. This fallback behavior is also triggered if the element
781-
contains anything other than text.
784+
''text-combine'' were ''none''. This fallback behavior is also
785+
triggered if the element contains anything other than text.
782786
<p>In horizontal mode this value is equivalent to ''none''.
783787
</dd>
784788
</dl>

0 commit comments

Comments
 (0)