blob: 2202c90644908ed0ff628d13bf7f6f8156a22621 (
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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- ================================================================ -->
<!-- WARNING! This document contains significant trailing whitespace! -->
<!-- ================================================================ -->
<head>
<title>CSS Test: white-space: mixed tests</title>
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-29 -->
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/text/white-space/mixed/001.html" type="text/html"/>
<link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-model" />
<link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-property" />
<link rel="match" href="white-space-mixed-001-ref.xht" />
<meta name="flags" content="ahem" />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style type="text/css">
.test
{
background: yellow;
border: solid blue;
color: orange;
font: 1.25em/1 Ahem;
width: 19em;
}
.normal { white-space: normal; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre; }
</style>
</head>
<body>
<p>There should be a pretty yellow and orange pattern and "PASS" in orange on white.</p>
<div class="test pre">1234567890123456789<span class="normal">
x <span>
x <span class="pre"></span> x<span>
</span> x x</span> x <span> x x </span> x <span class="pre">x</span>
1234</span>567890123456789 xxxx xxxx xx<span class="normal">x<span class="nowrap">x
xxxx </span> </span>x<span class="normal"> <span class="pre"> </span> <span class="pre"> </span> <span class="pre"> </span>
<span class="nowrap">
</span> </span> <span class="pre"> </span><span class="normal"> </span> <span class="nowrap">
</span><span class="normal"> </span> x x x x x x x
<span class="nowrap">x
x x x x x x x x x xxxx
xxxx xxxx xxxx </span>
x x x x x x x<span class="normal"> xxxxxxxxxxxxxxxxxxx<span
class="pre"> x x x xxxx xxxx </span></span>
</div>
<p>The pattern in the blue rectangle above should look exactly like the reference rendering below:</p>
<div class="test pre">1234567890123456789
x x x x x x x x x x
1234567890123456789 xxxx xxxx xxxx xxxx
x x x x x x x x
x x x x x x x x x x xxxx xxxx xxxx xxxx
x x x x x x x
xxxxxxxxxxxxxxxxxxx x x x xxxx xxxx</div>
</body>
</html>
|