inline-formatting-context-014.xht (1100B)
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: Line boxes span the container</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-formatting" /> 7 8 <meta name="flags" content="ahem" /> 9 <meta name="assert" content="Line boxes span the entire width of a container unless constrained by floats." /> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 11 <style type="text/css"> 12 div 13 { 14 font: 20px/1em Ahem; 15 } 16 span 17 { 18 background: red; 19 border: solid green; 20 color: green; 21 } 22 </style> 23 </head> 24 <body> 25 <p>Test passes if there is a green stripe and <strong>no red</strong>.</p> 26 <div> 27 <span>XXXXX</span> 28 </div> 29 </body> 30 </html>