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 shorthand property reset to default values if not explicitly set</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<meta name="assert" content="The 'font' shorthand property resets any property not explicitly given a value to its initial value." />
<style type="text/css">
#div1
{
font: 14pt serif;
}
.test
{
font-size: 96px;
font-style: italic;
font-weight: bold;
}
#div2
{
font: 14pt serif;
}
</style>
</head>
<body>
<p>Test passes if the lines of "Filler Text" below match.</p>
<div id="div1">Filler Text</div>
<div id="div2" class="test">Filler Text</div>
</body>
</html>