{
 "caniuse": [
  "css-nth-child-of"
 ],
 "compat_features": [
  "css.selectors.nth-child.of_syntax",
  "css.selectors.nth-last-child.of_syntax"
 ],
 "description": "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.",
 "description_html": "The <code>of</code> syntax for the <code>:nth-child()</code> and <code>:nth-last-child()</code> CSS functional pseudo-classes match elements by the relative position of elements, counted from the first or last sibling matching a selector list.",
 "group": [
  "selectors"
 ],
 "kind": "feature",
 "name": ":nth-child() of <selector>",
 "spec": [
  "https://drafts.csswg.org/selectors-4/#the-nth-child-pseudo",
  "https://drafts.csswg.org/selectors-4/#the-nth-last-child-pseudo"
 ],
 "status": {
  "baseline": "high",
  "baseline_high_date": "2025-11-09",
  "baseline_low_date": "2023-05-09",
  "by_compat_key": {
   "css.selectors.nth-child.of_syntax": {
    "baseline": "high",
    "baseline_high_date": "2025-11-09",
    "baseline_low_date": "2023-05-09",
    "support": {
     "chrome": "111",
     "chrome_android": "111",
     "edge": "111",
     "firefox": "113",
     "firefox_android": "113",
     "safari": "9",
     "safari_ios": "9"
    }
   },
   "css.selectors.nth-last-child.of_syntax": {
    "baseline": "high",
    "baseline_high_date": "2025-11-09",
    "baseline_low_date": "2023-05-09",
    "support": {
     "chrome": "111",
     "chrome_android": "111",
     "edge": "111",
     "firefox": "113",
     "firefox_android": "113",
     "safari": "9",
     "safari_ios": "9"
    }
   }
  },
  "support": {
   "chrome": "111",
   "chrome_android": "111",
   "edge": "111",
   "firefox": "113",
   "firefox_android": "113",
   "safari": "9",
   "safari_ios": "9"
  }
 },
 "id": "nth-child-of",
 "groups": [
  "selectors"
 ],
 "specs": [
  {
   "url": "https://drafts.csswg.org/selectors-4/#the-nth-child-pseudo",
   "seriesComposition": "full",
   "shortname": "selectors-4",
   "series": {
    "shortname": "selectors",
    "currentSpecification": "selectors-4",
    "title": "Selectors",
    "shortTitle": "Selectors",
    "releaseUrl": "https://www.w3.org/TR/selectors/",
    "nightlyUrl": "https://drafts.csswg.org/selectors/"
   },
   "seriesVersion": "4",
   "seriesPrevious": "selectors-3",
   "seriesNext": "selectors-5",
   "organization": "W3C",
   "groups": [
    {
     "name": "Cascading Style Sheets (CSS) Working Group",
     "url": "https://www.w3.org/groups/wg/css/"
    }
   ],
   "release": {
    "url": "https://www.w3.org/TR/selectors-4/",
    "status": "Working Draft",
    "filename": "Overview.html"
   },
   "nightly": {
    "url": "https://drafts.csswg.org/selectors-4/",
    "status": "Editor's Draft",
    "alternateUrls": [
     "https://w3c.github.io/csswg-drafts/selectors-4/",
     "https://w3c.github.io/csswg-drafts/selectors/"
    ],
    "repository": "https://github.com/w3c/csswg-drafts",
    "sourcePath": "selectors-4/Overview.bs",
    "filename": "index.html"
   },
   "title": "Selectors Level 4",
   "source": "w3c",
   "shortTitle": "Selectors 4",
   "categories": [
    "browser"
   ],
   "standing": "good",
   "tests": {
    "repository": "https://github.com/web-platform-tests/wpt",
    "testPaths": [
     "css/selectors"
    ]
   },
   "fragment": "the-nth-child-pseudo"
  },
  {
   "url": "https://drafts.csswg.org/selectors-4/#the-nth-last-child-pseudo",
   "seriesComposition": "full",
   "shortname": "selectors-4",
   "series": {
    "shortname": "selectors",
    "currentSpecification": "selectors-4",
    "title": "Selectors",
    "shortTitle": "Selectors",
    "releaseUrl": "https://www.w3.org/TR/selectors/",
    "nightlyUrl": "https://drafts.csswg.org/selectors/"
   },
   "seriesVersion": "4",
   "seriesPrevious": "selectors-3",
   "seriesNext": "selectors-5",
   "organization": "W3C",
   "groups": [
    {
     "name": "Cascading Style Sheets (CSS) Working Group",
     "url": "https://www.w3.org/groups/wg/css/"
    }
   ],
   "release": {
    "url": "https://www.w3.org/TR/selectors-4/",
    "status": "Working Draft",
    "filename": "Overview.html"
   },
   "nightly": {
    "url": "https://drafts.csswg.org/selectors-4/",
    "status": "Editor's Draft",
    "alternateUrls": [
     "https://w3c.github.io/csswg-drafts/selectors-4/",
     "https://w3c.github.io/csswg-drafts/selectors/"
    ],
    "repository": "https://github.com/w3c/csswg-drafts",
    "sourcePath": "selectors-4/Overview.bs",
    "filename": "index.html"
   },
   "title": "Selectors Level 4",
   "source": "w3c",
   "shortTitle": "Selectors 4",
   "categories": [
    "browser"
   ],
   "standing": "good",
   "tests": {
    "repository": "https://github.com/web-platform-tests/wpt",
    "testPaths": [
     "css/selectors"
    ]
   },
   "fragment": "the-nth-last-child-pseudo"
  }
 ],
 "mdnUrls": [
  {
   "slug": "Web/CSS/Reference/Selectors/:nth-child",
   "title": "`:nth-child()` CSS pseudo-class",
   "anchor": null,
   "url": "https://developer.mozilla.org/docs/Web/CSS/Reference/Selectors/:nth-child"
  },
  {
   "slug": "Web/CSS/Reference/Selectors/:nth-last-child",
   "title": "`:nth-last-child()` CSS pseudo-class",
   "anchor": null,
   "url": "https://developer.mozilla.org/docs/Web/CSS/Reference/Selectors/:nth-last-child"
  }
 ],
 "standardPositions": [],
 "hasNegativeStandardPosition": false,
 "stateOfSurveys": [
  {
   "name": "State of CSS 2025",
   "url": "https://2025.stateofcss.com/en-US/features/#reading_list",
   "question": "reading_list",
   "subQuestion": "reading_list",
   "path": "dataAPI.surveys.state_of_css.css2025.reading_list.reading_list.combined.allEditions.0.buckets.8.entity"
  },
  {
   "name": "State of CSS 2025",
   "url": "https://2025.stateofcss.com/en-US/features/#all_features",
   "question": "features",
   "subQuestion": "all_features",
   "path": "dataAPI.surveys.state_of_css.css2025.features.all_features.54.entity"
  },
  {
   "name": "State of CSS 2024",
   "url": "https://2024.stateofcss.com/en-US/features/#reading_list",
   "question": "reading_list",
   "subQuestion": "reading_list",
   "path": "dataAPI.surveys.state_of_css.css2024.reading_list.reading_list.responses.currentEdition.buckets.8.entity"
  },
  {
   "name": "State of CSS 2024",
   "url": "https://2024.stateofcss.com/en-US/features/#all_features",
   "question": "features",
   "subQuestion": "all_features",
   "path": "dataAPI.surveys.state_of_css.css2024.features.all_features.59.entity"
  }
 ],
 "chromeUseCounters": {
  "percentageOfPageLoad": 0.03526433,
  "url": "https://chromestatus.com/metrics/webfeature/timeline/popularity/164"
 },
 "interop": [
  {
   "year": 2023,
   "label": "interop-2023-pseudos",
   "url": "https://wpt.fyi/interop-2023?feature=interop-2023-pseudos"
  }
 ],
 "wpt": {
  "url": "https://wpt.fyi/results?q=feature:nth-child-of"
 },
 "developerSignals": null,
 "bugs": {
  "chrome": [
   "https://bugs.chromium.org/p/chromium/issues/detail?id=304163"
  ]
 },
 "baselineLowDateAsObject": "2023-05-09T00:00:00.000Z",
 "baselineHighDateAsObject": "2025-11-09T00:00:00.000Z"
}