OLD | NEW |
| (Empty) |
1 | |
2 :root:first-child { background-color: red; } | |
3 :root:last-child { background-color: red; } | |
4 :root:only-child { background-color: red; } | |
5 :root:nth-child(1) { background-color: red; } | |
6 :root:nth-child(n) { background-color: red; } | |
7 :root:nth-last-child(1) { background-color: red; } | |
8 :root:nth-last-child(n) { background-color: red; } | |
9 :root:first-of-type { background-color: red; } | |
10 :root:last-of-type { background-color: red; } | |
11 :root:only-of-type { background-color: red; } | |
12 :root:nth-of-type(1) { background-color: red; } | |
13 :root:nth-of-type(n) { background-color: red; } | |
14 :root:nth-last-of-type(1) { background-color: red; } | |
15 :root:nth-last-of-type(n) { background-color: red; } | |
16 p { color: green; } | |
OLD | NEW |