Files
servo/tests/wpt/css-tests/css21_dev/html4/font-size-111.htm

29 lines
1.1 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: Font-size set to the keyword 'smaller'</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
<link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#propdef-font-size">
<link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-size-props">
<link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-size-prop">
<meta name="flags" content="ahem">
<meta name="assert" content="The 'font-size' property set to the keyword 'smaller' makes the font size smaller.">
<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>