Skip to content

Commit 512715c

Browse files
authored
Merge pull request #4420 from frivoal/white-space-dfn-cleanup
[css-text] Clarify handling of other space separators in white-space dfn
2 parents 8b12bb3 + f0050f7 commit 512715c

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

css-text-3/Overview.bs

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -822,11 +822,13 @@ Text Processing</h3>
822822
<dt><dfn>break-spaces</dfn></dt>
823823
<dd>The behavior is identical to that of ''white-space/pre-wrap'',
824824
except that:
825-
* Any sequence of <a>preserved</a> [=white space=] always takes up space,
825+
* Any sequence of <a>preserved</a> [=white space=]
826+
or [=other space separators=]
827+
always takes up space,
826828
including at the end of the line.
827829
* A line breaking opportunity exists after every <a>preserved</a> <a>white space</a> character
828-
and [=other space separators=],
829-
including between them.
830+
and after every [=other space separator=]
831+
(including between adjacent spaces).
830832

831833
<wpt>
832834
overflow-wrap/overflow-wrap-break-word-002.html
@@ -884,7 +886,9 @@ Text Processing</h3>
884886
line-break/line-break-anywhere-and-white-space-009.html
885887
</wpt>
886888

887-
Such [=preserved=] [=white space characters=] take up space and do not [=hang=],
889+
Such [=preserved=] [=white space characters=]
890+
and [=other space separators=]
891+
take up space and do not [=hang=],
888892
and thus affect the box's intrinsic sizes
889893
([=min-content size=] and [=max-content size=]).
890894

@@ -940,7 +944,8 @@ Text Processing</h3>
940944
<th>New Lines</th>
941945
<th>Spaces and Tabs</th>
942946
<th>Text Wrapping</th>
943-
<th>End-of-line spaces</th>
947+
<th>End-of-line [=spaces=]</th>
948+
<th>End-of-line [=other space separators=]</th>
944949
</tr>
945950
</thead>
946951
<tbody>
@@ -950,41 +955,47 @@ Text Processing</h3>
950955
<td>Collapse</td>
951956
<td>Wrap</td>
952957
<td>Remove</td>
958+
<td>Hang</td>
953959
</tr>
954960
<tr>
955961
<th>''pre''</th>
956962
<td>Preserve</td>
957963
<td>Preserve</td>
958964
<td>No wrap</td>
959965
<td>Preserve</td>
966+
<td>No wrap</td>
960967
</tr>
961968
<tr>
962969
<th>''nowrap''</th>
963970
<td>Collapse</td>
964971
<td>Collapse</td>
965972
<td>No wrap</td>
966973
<td>Remove</td>
974+
<td>Hang</td>
967975
</tr>
968976
<tr>
969977
<th>''pre-wrap''</th>
970978
<td>Preserve</td>
971979
<td>Preserve</td>
972980
<td>Wrap</td>
973981
<td>Hang</td>
982+
<td>Hang</td>
974983
</tr>
975984
<tr>
976985
<th>''break-spaces''</th>
977986
<td>Preserve</td>
978987
<td>Preserve</td>
979988
<td>Wrap</td>
980989
<td>Wrap</td>
990+
<td>Wrap</td>
981991
</tr>
982992
<tr>
983993
<th>''pre-line''</th>
984994
<td>Preserve</td>
985995
<td>Collapse</td>
986996
<td>Wrap</td>
987997
<td>Remove</td>
998+
<td>Hang</td>
988999
</tbody>
9891000
</table>
9901001

0 commit comments

Comments
 (0)