white-space-control-characters-001.xht (1440B)
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 and non white space control 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#ctrlchars" /> 7 <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-processing"/> 8 <meta name="flags" content="ahem" /> 9 <meta name="assert" content="White space processing model does not affect non white space control characters, in this case the 'Start of string' character." /> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 11 <style type="text/css"> 12 div 13 { 14 font: 20px/1 Ahem; 15 } 16 #div1 17 { 18 white-space: normal; 19 } 20 span 21 { 22 background: black; 23 } 24 #div2 25 { 26 background: blue; 27 height: 1em; 28 width: 5em; 29 } 30 </style> 31 </head> 32 <body> 33 <p>Test passes if the black box is the same width or wider than the blue box.</p> 34 <div id="div1"><span>X ˜ XX</span></div> 35 <div id="div2"></div> 36 </body> 37 </html>