block-formatting-contexts-011.xht (1228B)
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: Table-cell elements establish a new block formatting context</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-09-26 --> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-formatting" /> 8 <link rel="match" href="block-formatting-contexts-011-ref.xht" /> 9 10 <meta name="assert" content="Elements defined as table-cell elements establish a new block formatting context." /> 11 <style type="text/css"> 12 #span1 13 { 14 background-color: blue; 15 display: table-cell; 16 width: 100px; 17 } 18 </style> 19 </head> 20 <body> 21 <p>Test passes if the "Filler Text" is below the blue stripe.</p> 22 <div> 23 <span id="span1"> </span> 24 <span>Filler Text</span> 25 </div> 26 </body> 27 </html>