font-size-116.xht (1389B)
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: font-size in pixels</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-06-27 --> 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/size/006.xml" type="application/xhtml+xml"/> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-size-props" /> 9 <link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-size-prop"/> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 11 <style> 12 .prereq { display: inline; font: 1.25em/1 Ahem, sans-serif; background: red; color: white; } 13 .control { height: 0; } 14 .control div { width: 1000px; height: 100px; background: red; } 15 .test { font: 1000px/1 Ahem; color: green; } 16 </style> 17 </head> 18 <body> 19 <div class="prereq">Ahem_font_required_for_this_test.</div> 20 <p>There should be no red below (scroll all the way down if necessary).</p> 21 <div class="control"> 22 <div></div> 23 <div></div> 24 <div></div> 25 <div></div> 26 <div></div> 27 <div></div> 28 <div></div> 29 <div></div> 30 <div></div> 31 <div></div> 32 </div> 33 <div class="test">X</div> 34 </body> 35 </html>