Baseline Widely Selectors
:nth-child() of <selector>
The of syntax for the :nth-child() and :nth-last-child() CSS functional pseudo-classes match elements by the relative position of elements, counted from the first or last sibling matching a selector list.
Baseline Status
Widely Available
Since 2023-05-09
First Core Launch
Safari 9
2015-09-30
Core-3 Stability
2,778d (7.6y)
Last: Firefox (2023-05-09)
BCD Keys Mapped
2
Group: Selectors
Browser Support Timeline
Browser Support Releases
| Browser | Type | Version | Release Date |
|---|---|---|---|
| Safari on iOS | mobile | 9 | 2015-09-16 |
| Safari | desktop | 9 | 2015-09-30 |
| Chrome | desktop | 111 | 2023-03-07 |
| Chrome Android | mobile | 111 | 2023-03-07 |
| Edge | desktop | 111 | 2023-03-13 |
| Firefox | desktop | 113 | 2023-05-09 |
| Firefox for Android | mobile | 113 | 2023-05-09 |
Constituent MDN BCD Keys (Sample)
| BCD Key | Area | Core-3 TTA |
|---|---|---|
| css.selectors.nth-child.of_syntax | CSS | 2,778d (7.6y) |
| css.selectors.nth-last-child.of_syntax | CSS | 2,778d (7.6y) |