Skip to content

Commit f55dc74

Browse files
committed
[css-text-3] Trim ideographic spaces at the end of a line, to properly handle typical CJK typesetting. #2500
1 parent 9c7950f commit f55dc74

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

css-text-3/Overview.bs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -756,15 +756,19 @@ Characters and Letters</h3>
756756
<dfn lt="tab stop">Tab stops</dfn> occur at points that are multiples of the tab size
757757
from the block's starting content edge.
758758
The tab size is given by the 'tab-size' property.
759-
<li>A sequence of <a>collapsible</a> spaces at the end of a line
759+
<li>A sequence at the end of a line
760760
(ignoring any intervening <a>inline box</a> boundaries)
761+
of <a>collapsible</a> spaces (U+0020)
762+
and/or ideographic spaces (U+3000) whose 'white-space' value collapses spaces
761763
is removed.
762-
<li>If spaces or tabs at the end of a line are non-collapsible
764+
<li>If there remains any sequence of <a>white space</a>
765+
and/or ideographic spaces (U+3000)
766+
at the end of a line:
763767
<ul>
764768
<li>If 'white-space' is set to ''pre-wrap'',
765-
the UA must either <a>hang</a> the <a>white space</a>
769+
the UA must either <a>hang</a> this sequence
766770
or visually collapse the character advance widths
767-
of any overflowing spaces
771+
of any that overflow
768772
such that they don't take up space in the line.
769773

770774
Note: Hanging the white space rather than collapsing it

0 commit comments

Comments
 (0)