OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>CSS 2.1 Test Suite: white-space</title> | 4 <title>CSS 2.1 Test Suite: white-space</title> |
| 5 <script src="../resources/ahem.js"></script> |
5 <style type="text/css"> | 6 <style type="text/css"> |
6 div { font: 15px/1 Ahem; color: green; background: red url(support/css1test56
2.png) no-repeat; border: solid black; width: 15em; } | 7 div { font: 15px/1 Ahem; color: green; background: red url(support/css1test56
2.png) no-repeat; border: solid black; width: 15em; } |
7 div p { margin: 0; } | 8 div p { margin: 0; } |
8 .one {white-space: pre;} | 9 .one {white-space: pre;} |
9 .two {white-space: nowrap;} | 10 .two {white-space: nowrap;} |
10 .three {white-space: normal;} | 11 .three {white-space: normal;} |
11 </style> | 12 </style> |
12 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-prop"
title="16.6 Whitespace: the 'white-space' property"> | 13 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-prop"
title="16.6 Whitespace: the 'white-space' property"> |
13 </head> | 14 </head> |
14 <body> | 15 <body> |
15 <p>There should be a single green block below.</p> | 16 <p>There should be a single green block below.</p> |
16 <div> | 17 <div> |
17 <p class="one">x x x | 18 <p class="one">x x x |
18 x x x | 19 x x x |
19 x x</p> | 20 x x</p> |
20 <p class="two">x x x | 21 <p class="two">x x x |
21 x x x | 22 x x x |
22 x x</p> | 23 x x</p> |
23 <p class="one">x x x | 24 <p class="one">x x x |
24 x <span class="three">x x | 25 x <span class="three">x x |
25 x x</span></p> | 26 x x</span></p> |
26 </div> | 27 </div> |
27 </body> | 28 </body> |
28 </html> | 29 </html> |
OLD | NEW |