white-space-processing-006-ref.xht (959B)
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>test reference</title> 5 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 6 <style type="text/css"> 7 div 8 { 9 font-family: Ahem; 10 height: 1em; 11 margin-bottom: 3px; 12 width: 4em; 13 } 14 #div1 15 { 16 background: black; 17 white-space: nowrap; 18 } 19 #div2 20 { 21 background-color: blue; 22 } 23 </style> 24 </head> 25 <body> 26 <p>Test passes if the black box below is the same width, or shorter, than the blue box. Its okay if the black box has a small notch in it.</p> 27 <div id="div1">XX X</div> 28 <div id="div2"></div> 29 </body> 30 </html>