run-in-002.xht (1069B)
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 boxes change to inline boxes</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="assert" content="Sibling block boxes following a run-in makes the run-in become an inline of the block box." /> 8 <style type="text/css"> 9 #span1 10 { 11 display: run-in; 12 } 13 #span2 14 { 15 background: orange; 16 display: block; 17 } 18 </style> 19 </head> 20 <body> 21 <p>Test passes if the "Filler Text" below is all on the same line and is completely contained within the orange box.</p> 22 <div> 23 <span id="span1">Filler Text</span> 24 <span id="span2">Filler Text</span> 25 </div> 26 </body> 27 </html>