c562-white-sp-000.xht (1431B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: white-space</title> 5 <meta name="flags" content="ahem image" /> 6 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#white-space"/> 7 <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html"/> 8 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 9 <link rel="match" href="c562-white-sp-000-ref.xht" /> 10 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style type="text/css"><![CDATA[ 13 div { font: 15px/1 Ahem; color: green; background: red url(support/css1test562.png) no-repeat; border: solid black; width: 15em; } 14 div p { margin: 0; } 15 .one {white-space: pre;} 16 .two {white-space: nowrap;} 17 .three {white-space: normal;} 18 ]]></style> 19 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-prop" title="16.6 Whitespace: the 'white-space' property"/> 20 <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-property"/> 21 </head> 22 <body> 23 <p>There should be a single green block below.</p> 24 <div> 25 <p class="one">x x x 26 x x x 27 x x</p> 28 <p class="two">x x x 29 x x x 30 x x</p> 31 <p class="one">x x x 32 x <span class="three">x x 33 x x</span></p> 34 </div> 35 </body> 36 </html>