summaryrefslogtreecommitdiffstats
path: root/layout/reftests/text/white-space-3.html
blob: 1a413df09edafc7f612cb1d6bc12219ce2f8c33b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE HTML>
<html>
<head>
<style>
div { font: 24px monospace; width: 0; }
b { font-weight: normal; background: yellow; }
.cell { display: table-cell; border: 1px solid green; background: red; }
.nowrap { white-space: nowrap; }
.prewrap { white-space: pre-wrap; }
</style>
</head>
<body>

<p>There should be no red:</p>

<div><span class="cell"><b>Hiya<span class="prewrap"> </span><span class="nowrap"> </span>Kitty</b></span></div>

</body>
</html>