inline-formatting-context-001.xht (1342B)
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: Inline formatting context and basic horizontal Layout</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-001-ref.xht" /> 9 10 <meta name="assert" content="Inline boxes are laid out horizontally or one after the other starting at the top of the containing block." /> 11 <style type="text/css"> 12 #div1 13 { 14 border: solid 1px black; 15 width: 600px; 16 } 17 div div 18 { 19 display: inline; 20 } 21 </style> 22 </head> 23 <body> 24 <p>Test passes if all the words "Filler Text" are on the same line and they are contained by a black box.</p> 25 <div id="div1"> 26 <div>Filler Text </div> 27 <div>Filler Text </div> 28 <div>Filler Text</div> 29 </div> 30 </body> 31 </html>