block-in-inline-007.xht (1439B)
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: Blocks within inlines: Simple</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch" /> 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-03-07 --> 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/ib/007.html" type="text/html"/> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#display-prop" /> 9 <link rel="match" href="block-in-inline-007-ref.xht" /> 10 11 <meta name="assert" content="When an inline box contains block boxes, 12 the inline box is broken around the blocks." /> 13 <style type="text/css"> 14 .inline { display: inline; } 15 .block { display: block; margin: 1em 0; } 16 td { font: 1em/1 monospace; } 17 </style> 18 </head> 19 <body> 20 <p>The pairs of letters below should be adjacent.</p> 21 <table> 22 <tr> 23 <td> 24 <div class="block"> 25 <div class="inline"> 26 A 27 <div class="block"> 28 B 29 </div> 30 <div class="block"> 31 C 32 </div> 33 D 34 <div class="block"> 35 E 36 </div> 37 F 38 <div class="block"> 39 G 40 </div> 41 </div> 42 </div> 43 </td> 44 <td> 45 <pre>A 46 47 B 48 49 C 50 51 D 52 53 E 54 55 F 56 57 G</pre> 58 </td> 59 </tr> 60 </table> 61 </body> 62 </html>