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 family name same as keyword 'inherit'</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<meta name="assert" content="Font family named 'inherit' needs to be quoted to avoid conflict with keyword 'inherit'." />
<style type="text/css">
#div1
{
font-family: "inherit";
}
#div2
{
font-family: inherit;
}
</style>
</head>
<body>
<p>PREREQUISITE: Operating system needs to have the '<a href="support/AHEM_inherit.ttf">inherit</a>' font installed.</p>
<p>Post Test: Remove test font after run test case.</p>
<p>Test passes if there is a box above the letter "X" below.</p>
<div id="div1">X</div>
<div id="div2">X</div>
</body>
</html>