font-applies-to-003.xht (1387B)
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: Font and 'display: list-item' elements</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-12-15 --> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#propdef-font" /> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-shorthand" /> 9 <link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-prop"/> 10 <meta name="assert" content="The 'font' property applies to 'display: list-item' elements." /> 11 <style type="text/css"> 12 body 13 { 14 margin-left: 2em; 15 } 16 div 17 { 18 font: italic small-caps bold 16px sans-serif; 19 } 20 #div1 21 { 22 display: list-item; 23 } 24 </style> 25 </head> 26 <body> 27 <p>Test passes if the 2 lines of "Filler Text" match styles and the bottom "Filler Text" has a marker bullet on its left-hand side.</p> 28 <div>Filler Text</div> 29 <div id="div1">Filler Text</div> 30 </body> 31 </html>