white-space-normal-004.xht (1960B)
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 with inline elements</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/004.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> <span> X</span> <span> X</span> X X X É <span> X </span>É</span> </div> 34 <div> </div> 35 <div><span> XXXÉ XXXX ÉXXp ÉXXp </span></div> 36 <div> <span>X    X  X p <span> X </span> p X </span> </div> 37 <div><span>X X<span></span> <span> X </span>ÉXXÉ <span> </span> ÉXXÉ </span> </div> 38 </td> 39 </tr> 40 </table> 41 </body> 42 </html>