white-space-normal-009.xht (1343B)
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: zero width non-breaking space</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/009.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-property" /> 10 <link rel="match" href="white-space-normal-009-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; margin: 1em; } 20 span { display: inline; } 21 22 /* test */ 23 div { font: 20px/1 Ahem; width: 4em; background: red; color: green; } 24 </style> 25 </head> 26 <body> 27 <p>Test passes if there is a filled green rectangle and <strong>no red</strong>.</p> 28 29 <div> 30 xxxx 31 xxxx 32 </div> 33 34 </body> 35 </html>