Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles
The new css-nth-child-of and css-nth-last-child selectors allow you to efficiently match the first or last child of any element with any given set of criteria.
Last updated on : 2023-03-20
Browser Versions
IE
Edge
Firefox
Chrome
Safari
Opera
Fully Supported
Partially
No Support
selector list argument of :nth-child and :nth-last-child CSS pseudo-classes on IE is not supported on any IE versions.
selector list argument of :nth-child and :nth-last-child CSS pseudo-classes on Edge is fully supported on 111-111, and not supported on 12-110 Edge versions.
selector list argument of :nth-child and :nth-last-child CSS pseudo-classes on Firefox is not supported on any Firefox versions.
selector list argument of :nth-child and :nth-last-child CSS pseudo-classes on Chrome is fully supported on 113-114, and not supported on 4-112 Chrome versions.
selector list argument of :nth-child and :nth-last-child CSS pseudo-classes on Safari is fully supported on 9.1-16.4, and not supported on 3.2-8 Safari versions.
selector list argument of :nth-child and :nth-last-child CSS pseudo-classes on Opera is not supported on any Opera versions.
selector list argument of :nth-child and :nth-last-child CSS pseudo-classes on Safari on iOS is fully supported on 9.3-16.4, and not supported on 3.2-8 Safari on iOS versions.
selector list argument of :nth-child and :nth-last-child CSS pseudo-classes on Android Browser is fully supported on 111-111, and not supported on 2.1-109 Android Browser versions.
selector list argument of :nth-child and :nth-last-child CSS pseudo-classes on Opera Mobile is not supported on any Opera Mobile versions.
selector list argument of :nth-child and :nth-last-child CSS pseudo-classes on Chrome for Android is fully supported on 111-111, and not supported on 97-110 Chrome for Android versions.
selector list argument of :nth-child and :nth-last-child CSS pseudo-classes on Firefox for Android is not supported on any Firefox for Android versions.
selector list argument of :nth-child and :nth-last-child CSS pseudo-classes on Samsung Internet is not supported on any Samsung Internet versions.
Data sourced from
Overall Browser Compatibility Score
Note:selector list argument of :nth-child and :nth-last-child CSS pseudo-classes shows a browser compatibility score of 17. This is a collective score out of 100 to represent browser support of a web technology. The higher this score is, the greater is the browser compatibility. The browser compatibility score is not a 100% reflection for every browser and the web technology support. However, it does give you an estimate on how much you should rely on a particular web technology in terms of browser compatibility.
Test on 3000+ browsers for selector list argument of :nth-child and :nth-last-child CSS pseudo-classes & more
Test your website for selector list argument of :nth-child and :nth-last-child CSS pseudo-classes and other web technologies. Get 100 FREE automation test minutes!
Test NowKaneAI - Testing Assistant
World’s first AI-Powered E2E testing agent.
Did you find this page helpful?