{
 "compat_features": [
  "css.properties.aspect-ratio",
  "css.properties.aspect-ratio.auto",
  "html.elements.img.aspect_ratio_computed_from_attributes",
  "html.elements.video.aspect_ratio_computed_from_attributes"
 ],
 "description": "The aspect-ratio CSS property controls the width-to-height ratio of elements. For <img> and <video> elements, the width and height attributes used together with height: auto control the aspect ratio while the image/video is loading.",
 "description_html": "The <code>aspect-ratio</code> CSS property controls the width-to-height ratio of elements. For <code>&#x3C;img></code> and <code>&#x3C;video></code> elements, the <code>width</code> and <code>height</code> attributes used together with <code>height: auto</code> control the aspect ratio while the image/video is loading.",
 "group": [
  "css"
 ],
 "kind": "feature",
 "name": "aspect-ratio",
 "spec": [
  "https://drafts.csswg.org/css-sizing-4/#aspect-ratio"
 ],
 "status": {
  "baseline": "high",
  "baseline_high_date": "2024-03-20",
  "baseline_low_date": "2021-09-20",
  "by_compat_key": {
   "css.properties.aspect-ratio": {
    "baseline": "high",
    "baseline_high_date": "2024-03-20",
    "baseline_low_date": "2021-09-20",
    "support": {
     "chrome": "88",
     "chrome_android": "88",
     "edge": "88",
     "firefox": "89",
     "firefox_android": "89",
     "safari": "15",
     "safari_ios": "15"
    }
   },
   "css.properties.aspect-ratio.auto": {
    "baseline": "high",
    "baseline_high_date": "2024-03-20",
    "baseline_low_date": "2021-09-20",
    "support": {
     "chrome": "88",
     "chrome_android": "88",
     "edge": "88",
     "firefox": "89",
     "firefox_android": "89",
     "safari": "15",
     "safari_ios": "15"
    }
   },
   "html.elements.img.aspect_ratio_computed_from_attributes": {
    "baseline": "high",
    "baseline_high_date": "2024-03-20",
    "baseline_low_date": "2021-09-20",
    "support": {
     "chrome": "79",
     "chrome_android": "79",
     "edge": "79",
     "firefox": "71",
     "firefox_android": "79",
     "safari": "15",
     "safari_ios": "15"
    }
   },
   "html.elements.video.aspect_ratio_computed_from_attributes": {
    "baseline": "high",
    "baseline_high_date": "2023-03-16",
    "baseline_low_date": "2020-09-16",
    "support": {
     "chrome": "79",
     "chrome_android": "79",
     "edge": "79",
     "firefox": "71",
     "firefox_android": "79",
     "safari": "14",
     "safari_ios": "14"
    }
   }
  },
  "support": {
   "chrome": "88",
   "chrome_android": "88",
   "edge": "88",
   "firefox": "89",
   "firefox_android": "89",
   "safari": "15",
   "safari_ios": "15"
  }
 },
 "id": "aspect-ratio",
 "groups": [
  "css"
 ],
 "specs": [
  {
   "url": "https://drafts.csswg.org/css-sizing-4/#aspect-ratio",
   "seriesComposition": "delta",
   "shortname": "css-sizing-4",
   "series": {
    "shortname": "css-sizing",
    "currentSpecification": "css-sizing-3",
    "title": "CSS Box Sizing",
    "shortTitle": "CSS Sizing",
    "releaseUrl": "https://www.w3.org/TR/css-sizing/",
    "nightlyUrl": "https://drafts.csswg.org/css-sizing/"
   },
   "seriesVersion": "4",
   "shortTitle": "CSS Sizing 4",
   "seriesPrevious": "css-sizing-3",
   "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-sizing-4/",
    "status": "Working Draft",
    "filename": "Overview.html"
   },
   "nightly": {
    "url": "https://drafts.csswg.org/css-sizing-4/",
    "status": "Editor's Draft",
    "alternateUrls": [
     "https://w3c.github.io/csswg-drafts/css-sizing-4/"
    ],
    "repository": "https://github.com/w3c/csswg-drafts",
    "sourcePath": "css-sizing-4/Overview.bs",
    "filename": "index.html"
   },
   "title": "CSS Box Sizing Module Level 4",
   "source": "w3c",
   "categories": [
    "browser"
   ],
   "standing": "good",
   "tests": {
    "repository": "https://github.com/web-platform-tests/wpt",
    "testPaths": [
     "css/css-sizing"
    ]
   },
   "fragment": "aspect-ratio"
  }
 ],
 "mdnUrls": [
  {
   "slug": "Web/CSS/Reference/Properties/aspect-ratio",
   "title": "`aspect-ratio` CSS property",
   "anchor": null,
   "url": "https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/aspect-ratio"
  }
 ],
 "standardPositions": [],
 "hasNegativeStandardPosition": false,
 "stateOfSurveys": [
  {
   "name": "State of CSS 2025",
   "url": "https://2025.stateofcss.com/en-US/usage/#gamechanger_feature",
   "question": "usage",
   "subQuestion": "gamechanger_feature",
   "path": "dataAPI.surveys.state_of_css.css2025.usage.gamechanger_feature.freeform.allEditions.0.buckets.12.entity"
  },
  {
   "name": "State of CSS 2025",
   "url": "https://2025.stateofcss.com/en-US/usage/#favorite_new_features",
   "question": "usage",
   "subQuestion": "favorite_new_features",
   "path": "dataAPI.surveys.state_of_css.css2025.usage.favorite_new_features.freeform.allEditions.0.buckets.7.entity"
  },
  {
   "name": "State of CSS 2025",
   "url": "https://2025.stateofcss.com/en-US/usage/#css_interoperability_features",
   "question": "usage",
   "subQuestion": "css_interoperability_features",
   "path": "dataAPI.surveys.state_of_css.css2025.usage.css_interoperability_features.freeform.allEditions.0.buckets.12.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.3.entity"
  },
  {
   "name": "State of CSS 2024",
   "url": "https://2024.stateofcss.com/en-US/usage/#favorite_new_features",
   "question": "usage",
   "subQuestion": "favorite_new_features",
   "path": "dataAPI.surveys.state_of_css.css2024.usage.favorite_new_features.freeform.currentEdition.buckets.7.entity"
  },
  {
   "name": "State of CSS 2024",
   "url": "https://2024.stateofcss.com/en-US/usage/#css_interoperability_features",
   "question": "usage",
   "subQuestion": "css_interoperability_features",
   "path": "dataAPI.surveys.state_of_css.css2024.usage.css_interoperability_features.freeform.currentEdition.buckets.12.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.3.entity"
  }
 ],
 "chromeUseCounters": {
  "percentageOfPageLoad": 0.37579426,
  "url": "https://chromestatus.com/metrics/webfeature/timeline/popularity/9"
 },
 "interop": [
  {
   "year": 2021,
   "label": "interop-2021-aspect-ratio",
   "url": "https://wpt.fyi/interop-2021?feature=interop-2021-aspect-ratio"
  },
  {
   "year": 2022,
   "label": "interop-2021-aspect-ratio",
   "url": "https://wpt.fyi/interop-2022?feature=interop-2021-aspect-ratio"
  }
 ],
 "wpt": {
  "url": "https://wpt.fyi/results?q=feature:aspect-ratio"
 },
 "developerSignals": null,
 "bugs": {
  "chrome": [
   "https://crbug.com/1156160",
   "https://crbug.com/1045668",
   "https://bugs.chromium.org/p/chromium/issues/detail?id=979891"
  ]
 },
 "baselineLowDateAsObject": "2021-09-20T00:00:00.000Z",
 "baselineHighDateAsObject": "2024-03-20T00:00:00.000Z"
}