Skip to content

Commit 404ecc3

Browse files
committed
[css-text-3] Hanging/collapsing of fixed-width spaces
Closes w3c#3879
1 parent 87b2749 commit 404ecc3

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
@@ -1049,7 +1049,8 @@ Text Processing</h3>
10491049
<h3 id="white-space-rules">
10501050
The White Space Processing Rules</h3>
10511051

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

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

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

10811093
<p>For each inline (including anonymous inlines;
@@ -1508,7 +1520,7 @@ Text Processing</h3>
15081520
<li>A sequence at the end of a line
15091521
(ignoring any intervening <a>inline box</a> boundaries)
15101522
of <a>collapsible</a> spaces (U+0020)
1511-
and/or ideographic spaces (U+3000) whose 'white-space' value collapses spaces
1523+
and/or [=other space separators=] whose 'white-space' value collapses spaces
15121524
is removed.
15131525

15141526
<wpt>
@@ -1531,7 +1543,7 @@ Text Processing</h3>
15311543
white-space-processing-047.xht
15321544
</wpt>
15331545
<li>If there remains any sequence of <a>white space</a>
1534-
and/or ideographic spaces (U+3000)
1546+
and/or [=other space separators=]
15351547
at the end of a line:
15361548
<ul>
15371549
<li>If 'white-space' is set to ''pre-wrap'',
@@ -2179,7 +2191,7 @@ Line Breaking Details</h3>
21792191
<code>NU</code>, <code>AL</code>, <code>AI</code>, or <code>ID</code>
21802192
Unicode line breaking classes [[!UAX14]]).
21812193
It does not affect rules governing the <a>soft wrap opportunities</a>
2182-
created by spaces (including U+3000 IDEOGRAPHIC SPACE) and around punctuation.
2194+
created by spaces (including [=other space separators=]) and around punctuation.
21832195
(See 'line-break' for controls affecting punctuation and small kana.)
21842196

21852197
<wpt>

0 commit comments

Comments
 (0)