Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!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 one value</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="reviewer" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-05-24 -->
<link rel="match" href="border-color-006-ref.xht" />
<meta name="assert" content="The 'border-color' property set to 'inherit' is supported and properly inherits a single value that will be applied to all sides of the element." />
<style type="text/css">
body
{
border-color: blue;
}
div
{
border-color: inherit;
border-style: solid;
border-width: 3px;
height: 1in;
}
</style>
</head>
<body>
<p>Test passes if there is a wide hollow blue rectangle.</p>
<div></div>
</body>
</html>