{
 "compat_features": [
  "css.types.mod",
  "css.types.mod.mixed_type_parameters",
  "css.types.rem",
  "css.types.rem.mixed_type_parameters",
  "css.types.round",
  "css.types.round.mixed_type_parameters"
 ],
 "description": "The round(), mod(), and rem() CSS functions compute rounded values and the remainder after division.",
 "description_html": "The <code>round()</code>, <code>mod()</code>, and <code>rem()</code> CSS functions compute rounded values and the remainder after division.",
 "group": [
  "css"
 ],
 "kind": "feature",
 "name": "round(), mod(), and rem()",
 "spec": [
  "https://drafts.csswg.org/css-values-4/#round-func"
 ],
 "status": {
  "baseline": "low",
  "baseline_low_date": "2024-05-17",
  "by_compat_key": {
   "css.types.mod": {
    "baseline": "low",
    "baseline_low_date": "2024-05-17",
    "support": {
     "chrome": "125",
     "chrome_android": "125",
     "edge": "125",
     "firefox": "118",
     "firefox_android": "118",
     "safari": "15.4",
     "safari_ios": "15.4"
    }
   },
   "css.types.mod.mixed_type_parameters": {
    "baseline": "low",
    "baseline_low_date": "2024-05-17",
    "support": {
     "chrome": "125",
     "chrome_android": "125",
     "edge": "125",
     "firefox": "118",
     "firefox_android": "118",
     "safari": "17.2",
     "safari_ios": "17.2"
    }
   },
   "css.types.rem": {
    "baseline": "low",
    "baseline_low_date": "2024-05-17",
    "support": {
     "chrome": "125",
     "chrome_android": "125",
     "edge": "125",
     "firefox": "118",
     "firefox_android": "118",
     "safari": "15.4",
     "safari_ios": "15.4"
    }
   },
   "css.types.rem.mixed_type_parameters": {
    "baseline": "low",
    "baseline_low_date": "2024-05-17",
    "support": {
     "chrome": "125",
     "chrome_android": "125",
     "edge": "125",
     "firefox": "118",
     "firefox_android": "118",
     "safari": "17.2",
     "safari_ios": "17.2"
    }
   },
   "css.types.round": {
    "baseline": "low",
    "baseline_low_date": "2024-05-17",
    "support": {
     "chrome": "125",
     "chrome_android": "125",
     "edge": "125",
     "firefox": "118",
     "firefox_android": "118",
     "safari": "15.4",
     "safari_ios": "15.4"
    }
   },
   "css.types.round.mixed_type_parameters": {
    "baseline": "low",
    "baseline_low_date": "2024-05-17",
    "support": {
     "chrome": "125",
     "chrome_android": "125",
     "edge": "125",
     "firefox": "118",
     "firefox_android": "118",
     "safari": "17.2",
     "safari_ios": "17.2"
    }
   }
  },
  "support": {
   "chrome": "125",
   "chrome_android": "125",
   "edge": "125",
   "firefox": "118",
   "firefox_android": "118",
   "safari": "17.2",
   "safari_ios": "17.2"
  }
 },
 "id": "round-mod-rem",
 "groups": [
  "css"
 ],
 "specs": [
  {
   "url": "https://drafts.csswg.org/css-values-4/#round-func",
   "seriesComposition": "full",
   "shortname": "css-values-4",
   "series": {
    "shortname": "css-values",
    "currentSpecification": "css-values-4",
    "title": "CSS Values and Units",
    "shortTitle": "CSS Values",
    "releaseUrl": "https://www.w3.org/TR/css-values/",
    "nightlyUrl": "https://drafts.csswg.org/css-values/"
   },
   "seriesVersion": "4",
   "shortTitle": "CSS Values 4",
   "seriesPrevious": "css-values-3",
   "seriesNext": "css-values-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/css-values-4/",
    "status": "Working Draft",
    "filename": "Overview.html"
   },
   "nightly": {
    "url": "https://drafts.csswg.org/css-values-4/",
    "status": "Editor's Draft",
    "alternateUrls": [
     "https://w3c.github.io/csswg-drafts/css-values-4/",
     "https://w3c.github.io/csswg-drafts/css-values/"
    ],
    "repository": "https://github.com/w3c/csswg-drafts",
    "sourcePath": "css-values-4/Overview.bs",
    "filename": "index.html"
   },
   "title": "CSS Values and Units Module Level 4",
   "source": "w3c",
   "categories": [
    "browser"
   ],
   "standing": "good",
   "tests": {
    "repository": "https://github.com/web-platform-tests/wpt",
    "testPaths": [
     "css/css-values"
    ]
   },
   "fragment": "round-func"
  }
 ],
 "mdnUrls": [
  {
   "slug": "Web/CSS/Reference/Values/mod",
   "title": "`mod()` CSS function",
   "anchor": null,
   "url": "https://developer.mozilla.org/docs/Web/CSS/Reference/Values/mod"
  },
  {
   "slug": "Web/CSS/Reference/Values/rem",
   "title": "`rem()` CSS function",
   "anchor": null,
   "url": "https://developer.mozilla.org/docs/Web/CSS/Reference/Values/rem"
  },
  {
   "slug": "Web/CSS/Reference/Values/round",
   "title": "`round()` CSS function",
   "anchor": null,
   "url": "https://developer.mozilla.org/docs/Web/CSS/Reference/Values/round"
  }
 ],
 "standardPositions": [],
 "hasNegativeStandardPosition": false,
 "stateOfSurveys": [
  {
   "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.43.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.47.entity"
  }
 ],
 "chromeUseCounters": {
  "percentageOfPageLoad": 0.0146137,
  "url": "https://chromestatus.com/metrics/webfeature/timeline/popularity/176"
 },
 "interop": [],
 "wpt": {
  "url": "https://wpt.fyi/results?q=feature:round-mod-rem"
 },
 "developerSignals": null,
 "bugs": {
  "chrome": [
   "https://issues.chromium.org/issues/40253179"
  ]
 },
 "baselineLowDateAsObject": "2024-05-17T00:00:00.000Z",
 "baselineHighDateAsObject": null,
 "expectedBaselineHighDate": "2026-11-17"
}