Files
servo/tests/wpt/css-tests/css21_dev/html4/counters-001.htm

27 lines
966 B
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: Parsing counter functions with just the identifier</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html">
<link rel="match" href="reference/counters-001-ref.htm">
<meta name="flags" content="">
<meta name="assert" content="Counters can be referred to using only the identifier.">
<style type="text/css">
body
{
counter-reset: chapter;
}
div:before
{
content: counter(chapter);
color: green;
counter-increment: chapter;
}
</style>
</head>
<body>
<p>Test passes if there is a number "1" below.</p>
<div></div>
</body>
</html>