-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathbreak-boundary-2-chars-002.html
More file actions
48 lines (35 loc) · 1.28 KB
/
break-boundary-2-chars-002.html
File metadata and controls
48 lines (35 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Text Test: soft wrap opportunity at boundary between two characters</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<link rel="help" href="https://www.w3.org/TR/css-text-3/#word-break-property">
<link rel="match" href="reference/break-boundary-2-chars-002-ref.html">
<meta content="The word-break property can only apply when the 'white-space' value allow text wrapping, when line breaking opportunities are preserved. Therefore, 'word-break: break-all' must not cause any text wrapping in both cases of this test. There must be no wrapping between the 'c' and the 'x' and there must be no wrapping between the 'z' and the 'd'." name="assert">
<!--
white-space values that DISallow text wrapping:
{ pre , nowrap }
-->
<style>
div
{
display: inline-block;
font-size: 32px;
margin-right: 10ch;
width: 0;
word-break: normal;
}
span
{
word-break: break-all;
}
div#first-sub-test
{
white-space: pre;
}
div#second-sub-test
{
white-space: nowrap;
}
</style>
<div id="first-sub-test">abc<span>xyz</span>def</div>
<div id="second-sub-test">abc<span>xyz</span>def</div>