white-space-normal-003.xht (1828B)
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: UNICODE space characters</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/003.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-rules" /> 10 <link rel="match" href="white-space-normal-003-ref.xht" /> 11 12 <meta name="flags" content="ahem" /> 13 14 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 15 <style type="text/css"> 16 /* setup */ 17 * { white-space: normal; font: inherit; } 18 strong {font-weight: bold;} 19 div { display: block; } 20 span { display: inline; } 21 22 /* test */ 23 td { font: 20px/1 Ahem; color: maroon; background: red; padding: 0; } 24 span { color: green; background: lime; } 25 </style> 26 </head> 27 <body> 28 <p>Test passes if there is only the word "PASS" in green and <strong>no red</strong>.</p> 29 <table> 30 <tr> 31 <td> 32 <div>	<span>XXXp pXXp pXXp pXXp</span></div> 33 <div><span> X  X X X X É X É</span> </div> 34 <div><span> XXXÉ XXXX ÉXXp ÉXXp </span></div> 35 <div> <span>X    X  X p X p X </span> </div> 36 <div> <span> X X X ÉXXÉ ÉXXÉ 37 38 </span> 39 40 </div> 41 </td> 42 </tr> 43 </table> 44 </body> 45 </html>