Skip to content

Commit 582259c

Browse files
authored
Merge pull request #4096 from frivoal/unicode-Zs
[css-text-3] Hanging/collapsing of fixed-width spaces
2 parents 4d7af84 + 404ecc3 commit 582259c

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

css-text-3/Overview.bs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,8 @@ Text Processing</h3>
10471047
<h3 id="white-space-rules">
10481048
The White Space Processing Rules</h3>
10491049

1050-
<p>White space processing in CSS affects only
1050+
<p>Except where specified otherwise,
1051+
White space processing in CSS affects only
10511052
the <dfn export lt="white space|white space characters| document white space|document white space characters">document white space characters</dfn>:
10521053
spaces (U+0020), tabs (U+0009), and <a href="#white-space-processing">segment breaks</a>.
10531054

@@ -1074,6 +1075,17 @@ Text Processing</h3>
10741075
However, since both include spaces (U+0020), tabs (U+0009), and line feeds (U+000A)
10751076
most authors won't notice any differences.
10761077

1078+
<p>Besides
1079+
Space (U+0020)
1080+
and No-Break Space (U+00A0),
1081+
Unicode [[UNICODE]] defines a number of additional space separator characters.
1082+
In this specification
1083+
all characters in the Unicode Zs category (See [[!UAX44]])
1084+
except Space (U+0020)
1085+
and No-Break Space (U+00A0)
1086+
are collectively referred to as
1087+
<dfn>other space separators</dfn>.
1088+
10771089
<h4 id="white-space-phase-1">Phase I: Collapsing and Transformation</h4>
10781090

10791091
<p>For each inline (including anonymous inlines;
@@ -1506,7 +1518,7 @@ Text Processing</h3>
15061518
<li>A sequence at the end of a line
15071519
(ignoring any intervening <a>inline box</a> boundaries)
15081520
of <a>collapsible</a> spaces (U+0020)
1509-
and/or ideographic spaces (U+3000) whose 'white-space' value collapses spaces
1521+
and/or [=other space separators=] whose 'white-space' value collapses spaces
15101522
is removed.
15111523

15121524
<wpt>
@@ -1529,7 +1541,7 @@ Text Processing</h3>
15291541
white-space-processing-047.xht
15301542
</wpt>
15311543
<li>If there remains any sequence of <a>white space</a>
1532-
and/or ideographic spaces (U+3000)
1544+
and/or [=other space separators=]
15331545
at the end of a line:
15341546
<ul>
15351547
<li>If 'white-space' is set to ''pre-wrap'',
@@ -2176,7 +2188,7 @@ Line Breaking Details</h3>
21762188
<code>NU</code>, <code>AL</code>, <code>AI</code>, or <code>ID</code>
21772189
Unicode line breaking classes [[!UAX14]]).
21782190
It does not affect rules governing the <a>soft wrap opportunities</a>
2179-
created by spaces (including U+3000 IDEOGRAPHIC SPACE) and around punctuation.
2191+
created by spaces (including [=other space separators=]) and around punctuation.
21802192
(See 'line-break' for controls affecting punctuation and small kana.)
21812193

21822194
<wpt>

0 commit comments

Comments
 (0)