Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css3 / selectors3 / html / css3-modsel-73b.html
blobfa2ae5d76204fea2bd3448bffccbc4697d3af4c3
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
2 <html>
3 <head>
4 <title>NEGATED :nth-child() pseudo-class</title>
5 <style type="text/css">.green { background-color : lime ! important; }
6 ul > li:not(:nth-child(odd)) { background-color : red }
7 ol > li:not(:nth-child(even)) { background-color : red }
8 table.t1 tr:not(:nth-child(-n+4)) { background-color : red }
9 table.t2 td:not(:nth-child(3n+1)) { background-color : red }
10 table.t1 td, table.t2 td { border : thin black solid }</style>
11 <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
12 <link rel="prev" href="css3-modsel-73.html" title="NEGATED :nth-child() pseudo-class">
13 <link rel="next" href="css3-modsel-74.html" title="NEGATED :nth-last-child() pseudo-class">
14 <link rel="last" href="css3-modsel-d4.html" title="Dynamic updating of :first-child and :last-child">
15 <link rel="up" href="./index.html">
16 <link rel="top" href="../../index.html">
17 </head>
18 <body>
19 <ul>
20 <li>First list item</li>
21 <li class="green">This second list item should have a green background</li>
22 <li>Third list</li>
23 <li class="green">This fourth list item should have a green background</li>
24 <li>Fifth list item</li>
25 <li class="green">This sixth list item should have a green background</li>
26 </ul>
27 <ol>
28 <li class="green">This first list item should have a green background</li>
29 <li>Second list item</li>
30 <li class="green">This third list item should have a green background</li>
31 <li>Fourth list item</li>
32 <li class="green">This fifth list item should have a green background</li>
33 <li>Sixth list item</li>
34 </ol>
35 <div>
36 <table border="1" class="t1">
37 <tr>
38 <td>1.1</td>
39 <td>1.2</td>
40 <td>1.3</td>
41 </tr>
42 <tr>
43 <td>2.1</td>
44 <td>2.2</td>
45 <td>2.3</td>
46 </tr>
47 <tr>
48 <td>3.1</td>
49 <td>3.2</td>
50 <td>3.3</td>
51 </tr>
52 <tr>
53 <td>4.1</td>
54 <td>4.2</td>
55 <td>4.3</td>
56 </tr>
57 <tr class="green">
58 <td>Green row : 5.1</td>
59 <td>5.2</td>
60 <td>5.3</td>
61 </tr>
62 <tr class="green">
63 <td>Green row : 6.1</td>
64 <td>6.2</td>
65 <td>6.3</td>
66 </tr>
67 </table>
68 <p></p>
69 <table class="t2" border="1">
70 <tr>
71 <td>1.1</td>
72 <td class="green">green cell</td>
73 <td class="green">green cell</td>
74 <td>1.4</td>
75 <td class="green">green cell</td>
76 <td class="green">green cell</td>
77 <td>1.7</td>
78 <td class="green">green cell</td>
79 </tr>
80 <tr>
81 <td>2.1</td>
82 <td class="green">green cell</td>
83 <td class="green">green cell</td>
84 <td>2.4</td>
85 <td class="green">green cell</td>
86 <td class="green">green cell</td>
87 <td>2.7</td>
88 <td class="green">green cell</td>
89 </tr>
90 <tr>
91 <td>3.1</td>
92 <td class="green">green cell</td>
93 <td class="green">green cell</td>
94 <td>3.4</td>
95 <td class="green">green cell</td>
96 <td class="green">green cell</td>
97 <td>3.7</td>
98 <td class="green">green cell</td>
99 </tr>
100 </table>
101 </div>
102 </body>
103 </html>