white-space-processing-015.xht (1499B)
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 'nowrap' and linefeed characters</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-model" /> 7 <link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform"/> 8 <link rel="match" href="white-space-processing-015-ref.xht"/> 9 <meta name="flags" content="ahem" /> 10 <meta name="assert" content="Linefeed characters are transformed into spaces, zero-width space, or not rendered when 'white-space' is set to 'nowrap'." /> 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style type="text/css"> 13 span 14 { 15 background-color: black; 16 font-family: Ahem; 17 white-space: nowrap; 18 } 19 #div1 20 { 21 background: blue; 22 display: inline-block; 23 height: 1em; 24 width: 5em; 25 } 26 </style> 27 </head> 28 <body> 29 <p>Test passes if there is one black box below and it is at least as long as the blue box (it can be longer).</p> 30 <div> 31 <span>XX XX</span> 32 </div> 33 <div id="div1"></div> 34 </body> 35 </html>