inline-formatting-context-015.xht (1415B)
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 next to floats</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-04-04 --> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-formatting" /> 8 <link rel="match" href="inline-formatting-context-015-ref.xht" /> 9 10 <meta name="assert" content="Line boxes adjust for floated elements." /> 11 <style type="text/css"> 12 #div1 13 { 14 width: 200px; 15 } 16 #div2 17 { 18 border: 5px solid blue; 19 height: 20px; 20 float: left; 21 width: 50%; 22 } 23 #div3 24 { 25 background: orange; 26 } 27 </style> 28 </head> 29 <body> 30 <p>Test passes if the "Filler Text" is to the right of the blue box and an orange background covers the area behind both the "Filler Text" and the blue box.</p> 31 <div id="div1"> 32 <div id="div2"></div> 33 <div id="div3">Filler Text Filler Text</div> 34 </div> 35 </body> 36 </html>