# :nth-last-of-type test

#### p:nth-last-of-type(odd)

1

2 +

(div)

3

(div)

4 +

#### p:nth-last-of-type(2n+1) - same as odd

1

2 +

(div)

3

(div)

4 +

#### p:nth-last-of-type(even)

1 +

2

(div)

3 +

(div)

4

#### p:nth-last-of-type(2n) - same as even

1 +

2

(div)

3 +

(div)

4

#### p:nth-last-of-type(2)

1

2 +

(div)

3

#### p:nth-last-of-type(3n)

1 +

2

(div)

3

(div)

4 +

(div)
(div)

5

6

#### p:nth-last-of-type(3n+1)

1

2

(div)

3 +

(div)

4

(div)
(div)

5

6 +

#### p:nth-last-of-type(3n-1)

1

2 +

(div)

3

(div)

4

(div)
(div)

5 +

6

#### p:nth-last-of-type(-n+3)

1

2 +

(div)

3 +

(div)

4 +

#### p:nth-last-of-type(n)

1 +

2 +

(div)

3 +

#### p:nth-last-of-type(-n) - same as n

1 +

2 +

(div)

3 +

#### p:nth-last-of-type(+n) - same as n

1 +

2 +

(div)

3 +

#### p:nth-last-of-type(0n+1)

1

2

(div)

3 +

#### p:nth-last-of-type(n+2):nth-last-of-type(-n+3)

1

2

(div)

3 +

(div)

4 +

(div)
(div)

5

#### :nth-last-of-type(-5n+3) - Acid3

1

(div)
(div)

2

(div)

3

(div)
(div)
(div)

4

5

6

(div)

7

(div)
(div)

8

(div)

9

10

11

12

13 +

14

15