blob: 96219da9180533c4faeeca7090b00dfcd3ab97eb [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>CSS 2.1 Test Suite: Cascading Order</title>
<link rel="stylesheet" href="support/c-red.css">
<style type="text/css">
body * { color: red; list-style: none; margin: 0; padding: 0; }
span { color: red; }
li span.a { color: red; }
li span.b { color: red; }
li span.c { color: red; }
li span.d { color: red; }
li span.e { color: red; }
li span.f { color: red; }
ul li span.a { color: green; }
ul li span.b { color: green; }
ul li li span.c { color: red; }
ul li li span.d { color: red; }
ul li li span.e { color: red; }
ul li li span.f { color: red; }
ul li li span.c { color: green; }
li.test1 span.d { color: green; }
ul li.test2 span.e { color: green; }
ul li.test3 span.f { color: red; }
ul li#test3 span.f { color: green; }
.test4 { color: red; }
.test4 { color: green; }
.c { color: green; }
</style>
<link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#cascading-order" title="6.4.1 Cascading order">
<link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#specificity" title="6.4.3 Calculating a selector's specificity">
</head>
<body>
<ul>
<li> <span class="a"> This should be green. </span> </li>
<li> <span class="b"> This should be green. </span>
<ul>
<li> <span class="c"> This should be green. </span> </li>
<li> <span class="c"> This should be green. </span> </li>
<li class="test1"> <span class="d"> This should be green. </span> </li>
</ul>
</li>
<li class="test2"> <span class="e"> This should be green. </span> </li>
<li id="test3" class="test3"> <span class="f"> This should be green. </span> </li>
<li> <span class="a"> This should be green. </span> </li>
</ul>
<p style="color: green;"> This should be green. </p>
<p class="test4"> This should be green. </p>
<p class="c"> This should be green. </p>
</body>
</html>