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: display</title>
5 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#display">
6 <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html">
7 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
8 <meta name="flags" content="">
9 <style type="text/css">
10 div { color: navy; white-space: nowrap; }
11 .one {display: block;}
12 .two {display: inline;}
13 .three {display: list-item; list-style-type: decimal; list-style-position: inside;}
14 .four {display: none; color: yellow; background: red;}
15 a {display: block;}
16 </style>
17 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#lists" title="12.5 Lists">
18 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#display-prop" title="9.2.4 The 'display' property">
19 </head>
20 <body>
21 <p>There should be eight numbered lines stacked below, each
22 starting with the stated line number. </p>
23 <div class="three">Line one. </div>
24 <div class="one"> 2. Line two. </div>
25 <div class="two"> 3. Line </div>
26 <div class="two"> three. </div>
27 <div> 4. Line four. </div>
28 <div class="four"> FAIL: This text should not appear. </div>
29 <div> 5. Line five. <span class="four">FAIL: This text should not appear.</span> </div>
30 <div> 6. Line six. <a>7. Line seven.</a> 8. Line eight. </div>
31 </body>
32 </html>