Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Text Test: word-break: keep-all should suppress linebreak for NU/AL/AI/ID characters</title>
<link rel="author" title="Richard Tjokroutomo" href="mailto:richard.tjokro2@gmail.com">
<link rel="match" href="reference/word-break-keep-all-011-ref.html">
<meta name="assert" content="
When word-break: keep-all, the text should only linebreak on whitespace & Chinese comma.
">
<style>
p {
width: min-content;
border: 1px solid #000000;
}
.normal {
word-break: normal;
}
.keep-all {
word-break: keep-all;
}
</style>
<div>
<h2>word-break: normal:</h2>
<p class="normal">中文english中文english中文english中文english中文english</p>
<h2>word-break: keep-all:</h2>
<p class="keep-all">中文english中文english中文english中文english中文english</p>
<h2>word-break: keep-all (w/ whitespace):</h2>
<p class="keep-all">中文english中文english 中文english中文english中文english</p>
<h2>word-break: keep-all (w/ whitespace & Chinese comma):</h2>
<p class="keep-all">中文english中文english 中文english中文,english中文english</p>
</div>