Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css2.1 / t060401-c32-cascading-00-b.html
blob96219da9180533c4faeeca7090b00dfcd3ab97eb
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2 <html>
3 <head>
4 <title>CSS 2.1 Test Suite: Cascading Order</title>
5 <link rel="stylesheet" href="support/c-red.css">
6 <style type="text/css">
7 body * { color: red; list-style: none; margin: 0; padding: 0; }
8 span { color: red; }
9 li span.a { color: red; }
10 li span.b { color: red; }
11 li span.c { color: red; }
12 li span.d { color: red; }
13 li span.e { color: red; }
14 li span.f { color: red; }
15 ul li span.a { color: green; }
16 ul li span.b { color: green; }
17 ul li li span.c { color: red; }
18 ul li li span.d { color: red; }
19 ul li li span.e { color: red; }
20 ul li li span.f { color: red; }
21 ul li li span.c { color: green; }
22 li.test1 span.d { color: green; }
23 ul li.test2 span.e { color: green; }
24 ul li.test3 span.f { color: red; }
25 ul li#test3 span.f { color: green; }
26 .test4 { color: red; }
27 .test4 { color: green; }
28 .c { color: green; }
29 </style>
30 <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#cascading-order" title="6.4.1 Cascading order">
31 <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#specificity" title="6.4.3 Calculating a selector's specificity">
32 </head>
33 <body>
34 <ul>
35 <li> <span class="a"> This should be green. </span> </li>
36 <li> <span class="b"> This should be green. </span>
37 <ul>
38 <li> <span class="c"> This should be green. </span> </li>
39 <li> <span class="c"> This should be green. </span> </li>
40 <li class="test1"> <span class="d"> This should be green. </span> </li>
41 </ul>
42 </li>
43 <li class="test2"> <span class="e"> This should be green. </span> </li>
44 <li id="test3" class="test3"> <span class="f"> This should be green. </span> </li>
45 <li> <span class="a"> This should be green. </span> </li>
46 </ul>
47 <p style="color: green;"> This should be green. </p>
48 <p class="test4"> This should be green. </p>
49 <p class="c"> This should be green. </p>
50 </body>
51 </html>