OLD | NEW |
1 SUCCESS | 1 SUCCESS |
2 | 2 |
3 Rules from the stylesheet: | 3 Rules from the stylesheet: |
4 | 4 |
5 #a:nth-child(n-1) { color: green; } | 5 #a:nth-child(1n-1) { color: green; } |
6 #b:nth-child(n- 10) { color: green; } | 6 #b:nth-child(1n-10) { color: green; } |
7 #g:nth-child(-n-1) { color: green; } | 7 #g:nth-child(-1n-1) { color: green; } |
8 #h:nth-child(-n- 10) { color: green; } | 8 #h:nth-child(-1n-10) { color: green; } |
9 #n:nth-child(-n | 9 #n:nth-child(-1n-1) { color: green; } |
10 - 1) { color: green; } | 10 #o:nth-child(-1n+13) { color: green; } |
11 #o:nth-child(-n | |
12 +13) { color: green; } | |
13 Expected result: | 11 Expected result: |
14 | 12 |
15 #a:nth-child(n-1) { color: green; } | 13 #a:nth-child(1n-1) { color: green; } |
16 #b:nth-child(n- 10) { color: green; } | 14 #b:nth-child(1n-10) { color: green; } |
17 #g:nth-child(-n-1) { color: green; } | 15 #g:nth-child(-1n-1) { color: green; } |
18 #h:nth-child(-n- 10) { color: green; } | 16 #h:nth-child(-1n-10) { color: green; } |
19 #n:nth-child(-n | 17 #n:nth-child(-1n-1) { color: green; } |
20 - 1) { color: green; } | 18 #o:nth-child(-1n+13) { color: green; } |
21 #o:nth-child(-n | |
22 +13) { color: green; } | |
23 | 19 |
OLD | NEW |