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: Border-color set to inherit, inheriting four values</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<meta name="assert" content="The 'border-color' property set to 'inherit' is supported and properly inherits four values that will be applied to the appropriate sides of the element." />
<style type="text/css">
body
{
border-color: blue green orange silver;
}
div
{
border-color: inherit;
border-style: solid;
border-width: 5px;
height: 1in;
}
</style>
</head>
<body>
<p>Test passes if there is a box below with a blue top border, a green right border, an orange bottom border and a silver left border.</p>
<div></div>
</body>
</html>