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-weight set to the numerical value, 400</title>
<meta name="assert" content="The 'font-weight' property set to '400' properly sets the font to the correct bold rendering." />
<style type="text/css">
div
{
color: red;
font-size: 2in;
line-height: 1em;
position: absolute;
}
#test
{
color: black;
font-weight: bold;
font-weight: 400;
}
</style>
</head>
<body>
<p>Test passes if there is no red visible on the page.</p>
<div>Filler Text</div>
<div id="test">Filler Text</div>
</body>
</html>