white-space-normal-002.xht (2311B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: white-space normal: simple tests</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-29 --> 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/text/white-space/normal/002.html" type="text/html"/> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-model" /> 9 <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2" /> 10 <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-1" /> 11 <link rel="match" href="white-space-normal-001-ref.xht" /> 12 13 <meta name="flags" content="ahem" /> 14 15 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 16 <style type="text/css"> 17 * { white-space: normal; } 18 div { display: block; } 19 span { display: inline; } 20 table { padding: 0; border-spacing: 0; border: solid; } 21 td { font: 20px/1 Ahem; color: red; background: red; padding: 0; } 22 .red { background: red; } 23 .green { color: green; background: lime; } 24 .check { width: 3em; background: lime; color: green; } 25 </style> 26 </head> 27 <body> 28 <p>Test passes if there is a rectangle with 3 columns (1 dark green, 1 light green and then 1 dark green) and if there is <strong>no red</strong>.</p> 29 <table> 30 <tr> 31 <td> 32 <div class="red"> </div> 33 <div class="red"> <div></div></div> 34 <div class="red"> <div> </div></div> 35 <div class="red"><div> </div></div> 36 <div class="red"><div> </div> </div> 37 <div class="red"><div></div> </div> 38 <div class="red"> <div></div> </div> 39 <div class="red"> <div> </div> </div> 40 <div class="green"><span>X</span> <span>X</span></div> 41 <div class="green"> <span>X</span> <span>X</span></div> 42 <div class="green"><span>X</span> <span>X</span> </div> 43 <div class="green"> <div></div> <span>X</span> <span>X</span> </div> 44 <div class="green"> <span>X</span> <span>X</span> <div></div> </div> 45 <div class="check">X X</div> 46 </td> 47 </tr> 48 </table> 49 </body> 50 </html>