c561-list-displ-000.xht (1568B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 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 <link rel="match" href="c561-list-displ-000-ref.xht" /> 9 10 <style type="text/css"><![CDATA[ 11 div { color: navy; white-space: nowrap; } 12 .one {display: block;} 13 .two {display: inline;} 14 .three {display: list-item; list-style-type: decimal; list-style-position: inside;} 15 .four {display: none; color: yellow; background: red;} 16 a {display: block;} 17 ]]></style> 18 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#lists" title="12.5 Lists"/> 19 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#display-prop" title="9.2.4 The 'display' property"/> 20 </head> 21 <body> 22 <p>There should be eight numbered lines stacked below, each 23 starting with the stated line number. </p> 24 <div class="three">Line one. </div> 25 <div class="one"> 2. Line two. </div> 26 <div class="two"> 3. Line </div> 27 <div class="two"> three. </div> 28 <div> 4. Line four. </div> 29 <div class="four"> FAIL: This text should not appear. </div> 30 <div> 5. Line five. <span class="four">FAIL: This text should not appear.</span> </div> 31 <div> 6. Line six. <a>7. Line seven.</a> 8. Line eight. </div> 32 </body> 33 </html>