Skip to content

[css-text] Clarify handling of other space separators in white-space dfn #4420

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions css-text-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -822,11 +822,13 @@ Text Processing</h3>
<dt><dfn>break-spaces</dfn></dt>
<dd>The behavior is identical to that of ''white-space/pre-wrap'',
except that:
* Any sequence of <a>preserved</a> [=white space=] always takes up space,
* Any sequence of <a>preserved</a> [=white space=]
or [=other space separators=]
always takes up space,
including at the end of the line.
* A line breaking opportunity exists after every <a>preserved</a> <a>white space</a> character
and [=other space separators=],
including between them.
and after every [=other space separator=]
(including between adjacent spaces).

<wpt>
overflow-wrap/overflow-wrap-break-word-002.html
Expand Down Expand Up @@ -884,7 +886,9 @@ Text Processing</h3>
line-break/line-break-anywhere-and-white-space-009.html
</wpt>

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

Expand Down Expand Up @@ -940,7 +944,8 @@ Text Processing</h3>
<th>New Lines</th>
<th>Spaces and Tabs</th>
<th>Text Wrapping</th>
<th>End-of-line spaces</th>
<th>End-of-line [=spaces=]</th>
<th>End-of-line [=other space separators=]</th>
</tr>
</thead>
<tbody>
Expand All @@ -950,41 +955,47 @@ Text Processing</h3>
<td>Collapse</td>
<td>Wrap</td>
<td>Remove</td>
<td>Hang</td>
</tr>
<tr>
<th>''pre''</th>
<td>Preserve</td>
<td>Preserve</td>
<td>No wrap</td>
<td>Preserve</td>
<td>No wrap</td>
</tr>
<tr>
<th>''nowrap''</th>
<td>Collapse</td>
<td>Collapse</td>
<td>No wrap</td>
<td>Remove</td>
<td>Hang</td>
</tr>
<tr>
<th>''pre-wrap''</th>
<td>Preserve</td>
<td>Preserve</td>
<td>Wrap</td>
<td>Hang</td>
<td>Hang</td>
</tr>
<tr>
<th>''break-spaces''</th>
<td>Preserve</td>
<td>Preserve</td>
<td>Wrap</td>
<td>Wrap</td>
<td>Wrap</td>
</tr>
<tr>
<th>''pre-line''</th>
<td>Preserve</td>
<td>Collapse</td>
<td>Wrap</td>
<td>Remove</td>
<td>Hang</td>
</tbody>
</table>

Expand Down