blob: 1c11d97093baafd73cc907726b31b5cec00d2eee (
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
|
<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Text: 'white-space: nowrap' (basic)</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/#white-space-property">
<link rel="match" href="reference/white-space-nowrap-011-ref.html">
<style>
div
{
border: black solid 2px;
font-family: monospace;
font-size: 32px;
margin-bottom: 0.25em;
width: 16ch;
}
div#test
{
white-space: nowrap;
}
div#reference
{
white-space: normal;
}
</style>
<p>Test passes if the characters inside of each black-bordered rectangles are laid out identically. Only "or sit amet." should be outside of black-bordered rectangles.
<div id="test">Lorem ipsum. Dolor
sit	amet. <br>consectetur</div>
<div id="reference">Lorem ipsum. Dolor sit amet.<br>
consectetur</div>
<!--
<div id="test">Lorem ipsum. Dolor
^^^^^^^^
12345678
sit	amet. <br>consectetur</div>
^^^
123
	 == Horizontal tabulation == 	 == 	

 == Line feed == 
 == 

-->
|