clear-runin-001.xht (1226B)
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: Clear applies to final block box of a run-in</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#flow-control" /> 7 <meta name="assert" content="Clearance only applies to the final block box of a run-in element." /> 8 <style type="text/css"> 9 #div1 10 { 11 width: 4in; 12 } 13 #span1 14 { 15 background-color: blue; 16 float: left; 17 height: 1in; 18 width: 1in; 19 } 20 #span2 21 { 22 clear: left; 23 display: run-in; 24 } 25 </style> 26 </head> 27 <body> 28 <p>Test passes if the "Filler Text" is all on the same line and is below the blue box.</p> 29 <div id="div1"> 30 <span id="span1"></span> 31 <span id="span2">Filler Text </span> 32 <div>Filler Text</div> 33 </div> 34 </body> 35 </html>