1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: Content property and white-space: nowrap</title>
5 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
6 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content">
8 <meta name="flags" content="">
9 <meta name="assert" content="'white-space: normal' applies to generated string content.">
10 <style type="text/css">
11 div {
12 border: solid silver;
13 margin: 0.5em;
14 padding: 0.2em;
15 color: blue;
16 width: 10em;
17 }
18 #test:before
19 {
20 content: "This text\A should\A wrap\A normally.";
21 }
22 </style>
23 </head>
24 <body>
25 <p>Test passes if the contents of the two silver boxes are identical.</p>
26 <div id="reference">This text should wrap normally.</div>
27 <div id="test"></div>
28 </body>
29 </html>