run-in-001.xht (1202B)
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: Run-in with a block box converts to a block box</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#run-in" /> 7 <meta name="flags" content="ahem" /> 8 <meta name="assert" content="Run-in boxes are converted to block boxes when the run-in box contains a block box." /> 9 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 10 <style type="text/css"> 11 div 12 { 13 font: 20px/1em Ahem; 14 } 15 #span1 16 { 17 display: run-in; 18 } 19 span span 20 { 21 display: block; 22 } 23 </style> 24 </head> 25 <body> 26 <p>Test passes if there is a square below.</p> 27 <div> 28 <span>XXX</span> 29 <span id="span1"> 30 XXX 31 <span>XXX</span> 32 </span> 33 </div> 34 </body> 35 </html>