blob: 3fa827b487060f6343c141ef0103ce2d70c1eb45 (
plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<title>CSS Text: 'word-break: keep-all' applied to an inline in latin</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/word-break-keep-all-063-ref.html">
<style>
div
{
border: orange solid;
font: 24px monospace;
margin-bottom: 4px;
width: 15ch;
/*
15 in 15ch is an entirely arbitrary number.
*/
word-break: break-all;
/*
'word-break: break-all' applied on the
wrapping block is necessary to verify
that 'word-break: keep-all' is
implemented
*/
}
div#ws-normal
{
white-space: normal;
}
div#ws-prewrap
{
white-space: pre-wrap;
}
div#ws-breakspaces
{
white-space: break-spaces;
}
div#ws-preline
{
white-space: pre-line;
}
span.test
{
word-break: keep-all;
}
div#reference
{
word-break: normal;
}
</style>
<p>Test passes if the glyphs in the 5 orange rectangles are laid out <strong>identically</strong>.
<div id="ws-normal">A simple <span class="test">sentence</span> in english.</div>
<div id="ws-prewrap">A simple <span class="test">sentence</span> in english.</div>
<div id="ws-breakspaces">A simple <span class="test">sentence</span> in english.</div>
<div id="ws-preline">A simple <span class="test">sentence</span> in english.</div>
<div id="reference">A simple<br>sentence in eng<br>lish.</div>
<!-- 123456789012345 -->
|