<!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:[email protected]"/>
<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>