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: pre-line</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content">
7 <meta name="flags" content="">
8 <meta name="assert" content="'white-space: pre-line' applies to generated string content.">
9 <style type="text/css">
10 #reference, #test
11 {
12 width: 25em;
13 }
14 #reference
15 {
16 border: solid green;
17 }
18 #test
19 {
20 border: solid blue;
21 }
22 #test:before
23 {
24 content: "This text\A should be on two lines.";
25 white-space: pre-line;
26 }
27 </style>
28 </head>
29 <body>
30 <p>Test passes if the text in the green box and the blue box have the same spacing between words and the lines wrap at the same point.</p>
31 <div id="reference">This text<br>should be on two lines.</div>
32 <div id="test"></div>
33 </body>
34 </html>