Source code
Revision control
Copy as Markdown
Other Tools
<head>
<title>CSS Test: font-size in pixels</title>
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
<link rel="reviewer" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-27 -->
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/size/006.xml" type="application/xhtml+xml"/>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.prereq { display: inline; font: 1.25em/1 Ahem, sans-serif; background: red; color: white; }
.control { height: 0; }
.control div { width: 1000px; height: 100px; background: red; }
.test { font: 1000px/1 Ahem; color: green; }
</style>
</head>
<body>
<div class="prereq">Ahem_font_required_for_this_test.</div>
<p>There should be no red below (scroll all the way down if necessary).</p>
<div class="control">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class="test">X</div>
</body>
</html>