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: Outline-color set to 'inherit'</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<meta name="assert" content="Outline color inherit renders the correct outline color on the element." />
<style type="text/css">
#div1
{
left: 0;
outline-color: inherit;
outline-style: solid;
outline-width: 50px;
position: relative;
margin: 100px 0 0 100px;
width: 0;
}
#reference
{
background-color: green;
height: 100px;
margin: 50px 0 0 50px;
width: 100px;
}
#wrapper
{
height: 100px;
outline: green;
width: 100px;
}
</style>
</head>
<body>
<p>Test passes if the two boxes below are the same color.</p>
<div id="wrapper">
<div id="div1"></div>
</div>
<div id="reference"></div>
</body>
</html>