Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<title>CSS Test: Font-size set to the keyword 'smaller'</title>
<meta name="flags" content="ahem" />
<meta name="assert" content="The 'font-size' property set to the keyword 'smaller' makes the font size smaller." />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style type="text/css">
div
{
color: orange;
font-family: Ahem;
line-height: 1em;
}
#span1
{
color: blue;
font-size: smaller;
}
</style>
</head>
<body>
<p>Test passes if the blue box is smaller than the orange box.</p>
<div><span id="span1">X</span><span>X</span></div>
</body>
</html>