servo/tests/wpt/css-tests/css-fonts-3_dev/html/font-weight-002.htm

29 lines
No EOL
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-weight set to the keyword 'bold'</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-weight">
<link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-boldness">
<link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-weight-prop">
<meta name="flags" content="ahem">
<meta name="assert" content="The 'font-weight' property set to 'bold' properly sets the font to the bold rendering of the font.">
<style type="text/css">
div
{
font: 1in Ahem;
line-height: 1em;
}
#test
{
color: blue;
font-weight: bold;
}
</style>
</head>
<body>
<p>Test passes if the blue box is larger than the black box.</p>
<div>X</div>
<div id="test">X</div>
</body>
</html>