{
  "meta": {
    "canonicalUrl": "https://timetostable.com/feature/fit-content",
    "bcdVersion": "8.1.11",
    "webFeaturesVersion": "3.48.0"
  },
  "kind": "web-feature",
  "webFeature": {
    "id": "fit-content",
    "name": "fit-content",
    "description": "The fit-content CSS keyword expands a box as needed to fit its contents until the maximum size is reached, preserving the content's preferred aspect ratio.",
    "group": "layout",
    "groupName": "Layout",
    "spec": "https://drafts.csswg.org/css-sizing-4/#valdef-width-fit-content",
    "baseline": "high",
    "baselineLowDate": "2021-11-02",
    "baselineLowDay": 18933,
    "baselineHighDate": "2024-05-02",
    "compatCount": 6,
    "cats": [
      "css"
    ],
    "compatKeysSample": [
      "css.properties.height.fit-content",
      "css.properties.max-height.fit-content",
      "css.properties.max-width.fit-content",
      "css.properties.min-height.fit-content",
      "css.properties.min-width.fit-content",
      "css.properties.width.fit-content"
    ],
    "s": {
      "chrome": {
        "v": "46",
        "d": 16721
      },
      "chrome_android": {
        "v": "46",
        "d": 16722
      },
      "edge": {
        "v": "79",
        "d": 18276
      },
      "firefox": {
        "v": "94",
        "d": 18933
      },
      "firefox_android": {
        "v": "94",
        "d": 18933
      },
      "safari": {
        "v": "11",
        "d": 17428
      },
      "safari_ios": {
        "v": "11",
        "d": 17428
      }
    }
  },
  "relatedBcdFeatures": [
    {
      "id": "css.properties.height.fit-content",
      "cat": "css",
      "spec": "https://drafts.csswg.org/css-sizing/#valdef-width-fit-content",
      "st": 1,
      "wf": "fit-content",
      "bl": "high",
      "bld": 18933,
      "s": {
        "chrome": {
          "v": "46",
          "d": 16721
        },
        "firefox": {
          "v": "94",
          "d": 18933
        },
        "safari": {
          "v": "11",
          "d": 17428
        },
        "edge": {
          "v": "79",
          "d": 18276
        },
        "chrome_android": {
          "v": "46",
          "d": 16722
        },
        "firefox_android": {
          "v": "94",
          "d": 18933
        },
        "safari_ios": {
          "v": "11",
          "d": 17428
        },
        "webview_android": {
          "v": "46",
          "d": 16722
        },
        "webview_ios": {
          "v": "11",
          "d": 17428
        },
        "samsunginternet_android": {
          "v": "5.0",
          "d": 17150
        },
        "opera": {
          "v": "33",
          "d": 16735
        },
        "opera_android": {
          "v": "33",
          "d": 16742
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        }
      }
    },
    {
      "id": "css.properties.max-height.fit-content",
      "cat": "css",
      "spec": "https://drafts.csswg.org/css-sizing/#valdef-width-fit-content",
      "st": 1,
      "wf": "fit-content",
      "bl": "high",
      "bld": 18933,
      "s": {
        "chrome": {
          "v": "46",
          "d": 16721
        },
        "firefox": {
          "v": "94",
          "d": 18933
        },
        "safari": {
          "v": "11",
          "d": 17428
        },
        "edge": {
          "v": "79",
          "d": 18276
        },
        "chrome_android": {
          "v": "46",
          "d": 16722
        },
        "firefox_android": {
          "v": "94",
          "d": 18933
        },
        "safari_ios": {
          "v": "11",
          "d": 17428
        },
        "webview_android": {
          "v": "46",
          "d": 16722
        },
        "webview_ios": {
          "v": "11",
          "d": 17428
        },
        "samsunginternet_android": {
          "v": "5.0",
          "d": 17150
        },
        "opera": {
          "v": "44",
          "d": 17246
        },
        "opera_android": {
          "v": "43",
          "d": 17436
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        }
      },
      "notes": [
        {
          "t": "Firefox implements the definitions given in CSS3 Basic Box. This defines <code>available</code> and not <code>fit-available</code>. Also, the definition of <code>fit-content</code> is simpler than in CSS3 Sizing.",
          "b": [
            "firefox"
          ]
        },
        {
          "t": "Firefox for Android implements the definitions given in CSS3 Basic Box. This defines <code>available</code> and not <code>fit-available</code>. Also, the definition of <code>fit-content</code> is simpler than in CSS3 Sizing.",
          "b": [
            "firefox_android"
          ]
        }
      ]
    },
    {
      "id": "css.properties.max-width.fit-content",
      "cat": "css",
      "spec": "https://drafts.csswg.org/css-sizing/#valdef-width-fit-content",
      "st": 1,
      "wf": "fit-content",
      "bl": "high",
      "bld": 18933,
      "s": {
        "chrome": {
          "v": "46",
          "d": 16721
        },
        "firefox": {
          "v": "94",
          "d": 18933
        },
        "safari": {
          "v": "11",
          "d": 17428
        },
        "edge": {
          "v": "79",
          "d": 18276
        },
        "chrome_android": {
          "v": "46",
          "d": 16722
        },
        "firefox_android": {
          "v": "94",
          "d": 18933
        },
        "safari_ios": {
          "v": "11",
          "d": 17428
        },
        "webview_android": {
          "v": "46",
          "d": 16722
        },
        "webview_ios": {
          "v": "11",
          "d": 17428
        },
        "samsunginternet_android": {
          "v": "5.0",
          "d": 17150
        },
        "opera": {
          "v": "44",
          "d": 17246
        },
        "opera_android": {
          "v": "43",
          "d": 17436
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        }
      },
      "notes": [
        {
          "t": "Firefox implements the definitions given in CSS3 Basic Box. This defines <code>available</code> and not <code>fit-available</code>. Also, the definition of <code>fit-content</code> is simpler than in CSS3 Sizing.",
          "b": [
            "firefox"
          ]
        },
        {
          "t": "Firefox for Android implements the definitions given in CSS3 Basic Box. This defines <code>available</code> and not <code>fit-available</code>. Also, the definition of <code>fit-content</code> is simpler than in CSS3 Sizing.",
          "b": [
            "firefox_android"
          ]
        }
      ]
    },
    {
      "id": "css.properties.min-height.fit-content",
      "cat": "css",
      "spec": "https://drafts.csswg.org/css-sizing/#valdef-width-fit-content",
      "st": 1,
      "wf": "fit-content",
      "bl": "high",
      "bld": 18933,
      "s": {
        "chrome": {
          "v": "46",
          "d": 16721
        },
        "firefox": {
          "v": "94",
          "d": 18933
        },
        "safari": {
          "v": "11",
          "d": 17428
        },
        "edge": {
          "v": "79",
          "d": 18276
        },
        "chrome_android": {
          "v": "46",
          "d": 16722
        },
        "firefox_android": {
          "v": "94",
          "d": 18933
        },
        "safari_ios": {
          "v": "11",
          "d": 17428
        },
        "webview_android": {
          "v": "46",
          "d": 16722
        },
        "webview_ios": {
          "v": "11",
          "d": 17428
        },
        "samsunginternet_android": {
          "v": "5.0",
          "d": 17150
        },
        "opera": {
          "v": "44",
          "d": 17246
        },
        "opera_android": {
          "v": "43",
          "d": 17436
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        }
      },
      "notes": [
        {
          "t": "Firefox implements the definitions given in CSS3 Basic Box. This defines <code>available</code> and not <code>fit-available</code>. Also, the definition of <code>fit-content</code> is simpler than in CSS3 Sizing.",
          "b": [
            "firefox"
          ]
        },
        {
          "t": "Firefox for Android implements the definitions given in CSS3 Basic Box. This defines <code>available</code> and not <code>fit-available</code>. Also, the definition of <code>fit-content</code> is simpler than in CSS3 Sizing.",
          "b": [
            "firefox_android"
          ]
        }
      ]
    },
    {
      "id": "css.properties.min-width.fit-content",
      "cat": "css",
      "spec": "https://drafts.csswg.org/css-sizing/#valdef-width-fit-content",
      "st": 1,
      "wf": "fit-content",
      "bl": "high",
      "bld": 18933,
      "s": {
        "chrome": {
          "v": "46",
          "d": 16721
        },
        "firefox": {
          "v": "94",
          "d": 18933
        },
        "safari": {
          "v": "11",
          "d": 17428
        },
        "edge": {
          "v": "79",
          "d": 18276
        },
        "chrome_android": {
          "v": "46",
          "d": 16722
        },
        "firefox_android": {
          "v": "94",
          "d": 18933
        },
        "safari_ios": {
          "v": "11",
          "d": 17428
        },
        "webview_android": {
          "v": "46",
          "d": 16722
        },
        "webview_ios": {
          "v": "11",
          "d": 17428
        },
        "samsunginternet_android": {
          "v": "5.0",
          "d": 17150
        },
        "opera": {
          "v": "33",
          "d": 16735
        },
        "opera_android": {
          "v": "33",
          "d": 16742
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        }
      },
      "notes": [
        {
          "t": "Firefox implements the definitions given in CSS3 Basic Box. This defines <code>available</code> and not <code>fit-available</code>. Also, the definition of <code>fit-content</code> is simpler than in CSS3 Sizing.",
          "b": [
            "firefox"
          ]
        },
        {
          "t": "Firefox for Android implements the definitions given in CSS3 Basic Box. This defines <code>available</code> and not <code>fit-available</code>. Also, the definition of <code>fit-content</code> is simpler than in CSS3 Sizing.",
          "b": [
            "firefox_android"
          ]
        }
      ]
    },
    {
      "id": "css.properties.width.fit-content",
      "cat": "css",
      "mdn": "CSS/Reference/Values/fit-content",
      "spec": "https://drafts.csswg.org/css-sizing/#valdef-width-fit-content",
      "st": 1,
      "wf": "fit-content",
      "bl": "high",
      "bld": 18933,
      "s": {
        "chrome": {
          "v": "46",
          "d": 16721
        },
        "firefox": {
          "v": "94",
          "d": 18933
        },
        "safari": {
          "v": "11",
          "d": 17428
        },
        "edge": {
          "v": "79",
          "d": 18276
        },
        "chrome_android": {
          "v": "46",
          "d": 16722
        },
        "firefox_android": {
          "v": "94",
          "d": 18933
        },
        "safari_ios": {
          "v": "11",
          "d": 17428
        },
        "webview_android": {
          "v": "46",
          "d": 16722
        },
        "webview_ios": {
          "v": "11",
          "d": 17428
        },
        "samsunginternet_android": {
          "v": "5.0",
          "d": 17150
        },
        "opera": {
          "v": "33",
          "d": 16735
        },
        "opera_android": {
          "v": "33",
          "d": 16742
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        }
      }
    }
  ]
}