white-space-004-ref.xht (1134B)
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 reference</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net" /> 7 <meta name="flags" content="ahem" /> 8 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 9 <style type="text/css"> 10 div 11 { 12 font: 20px/1em Ahem; 13 margin: 0; 14 padding: 0; 15 } 16 #reference 17 { 18 background: blue; 19 display: inline-block; 20 height: 1em; 21 width: 2em; 22 } 23 </style> 24 </head> 25 <body> 26 <p>Test passes if there is a single black box above a blue box (there can be white space between the boxes) and the black box has the same width as the blue box.</p> 27 <div>XX<br />XX</div> 28 <div id="reference"></div> 29 </body> 30 </html>