1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
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="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/ib/003.html" type="text/html">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#display-prop">
8 <meta name="assert" content="When an inline box contains a block box, the inline box is broken around the box and its pieces, if empty, will not show any background.">
9 <style type="text/css">
10 .inline { background: red; color: red; display: inline; }
11 .block { color: green; display: block; }
12 </style>
13 </head>
14 <body>
15 <div class="block">
16 <div class="inline">
17 <div class="block">
18 There should be no red on this page.
19 </div>
20 </div>
21 </div>
22 </body>
23 </html>