]> Pileus Git - ~andy/gtk/blob - tests/reftests/box-pseudo-classes.css
reftests: Fix a bunch of invalid CSS cases
[~andy/gtk] / tests / reftests / box-pseudo-classes.css
1 * {
2   engine: none;
3   background-image: none;
4 }
5
6 .button:nth-child(even) {
7   background-color: yellow;
8 }
9
10 .button:nth-child(odd) {
11   background-color: red;
12 }
13
14 .button:nth-child(first) {
15   background-color: purple;
16 }
17
18 .button:nth-child(last):nth-child(even) {
19   background-color: green;
20 }
21
22 .button:nth-child(last):nth-child(odd) {
23   background-color: purple;
24 }
25
26 .button:nth-child(last):nth-child(first) {
27   background-color: blue;
28 }
29
30 /* for reference */
31
32 #red {
33   background-color: red;
34 }
35
36 #green {
37   background-color: green;
38 }
39
40 #purple {
41   background-color: purple;
42 }
43
44 #yellow {
45   background-color: yellow;
46 }
47
48 #blue {
49   background-color: blue;
50 }