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: Counter-reset with a value of inherit</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<meta name="assert" content="The counter-reset with the value inherit specified." />
<style type="text/css">
#wrapper
{
counter-reset: ident 5;
}
#test
{
counter-reset: inherit;
}
div:before
{
font-size: 30px;
content: counter(ident);
}
</style>
</head>
<body>
<p>Test passes if the numbers '5 5' appear below in the same order.</p>
<div id="wrapper">
<div id="test"></div>
</div>
</body>
</html>