{
 "caniuse": [
  "css-text-box-trim"
 ],
 "compat_features": [
  "css.properties.text-box",
  "css.properties.text-box-edge",
  "css.properties.text-box-edge.auto",
  "css.properties.text-box-trim",
  "css.properties.text-box-trim.none",
  "css.properties.text-box-trim.trim-both",
  "css.properties.text-box-trim.trim-end",
  "css.properties.text-box-trim.trim-start",
  "css.properties.text-box.normal",
  "css.types.text-edge",
  "css.types.text-edge.alphabetic",
  "css.types.text-edge.cap",
  "css.types.text-edge.ex",
  "css.types.text-edge.text"
 ],
 "description": "The text-box CSS property sets the spacing above and below text based on a font's typographic features. For example, text-box: trim-both ex alphabetic trims the top to the top of the letter x and the bottom to the bottom of most letters, without descenders.",
 "description_html": "The <code>text-box</code> CSS property sets the spacing above and below text based on a font's typographic features. For example, <code>text-box: trim-both ex alphabetic</code> trims the top to the top of the letter x and the bottom to the bottom of most letters, without descenders.",
 "group": [
  "text"
 ],
 "kind": "feature",
 "name": "text-box",
 "spec": [
  "https://drafts.csswg.org/css-inline-3/#leading-trim"
 ],
 "status": {
  "baseline": false,
  "by_compat_key": {
   "css.properties.text-box": {
    "baseline": "low",
    "baseline_low_date": "2026-08-18",
    "support": {
     "chrome": "133",
     "chrome_android": "133",
     "edge": "133",
     "firefox": "154",
     "firefox_android": "154",
     "safari": "18.2",
     "safari_ios": "18.2"
    }
   },
   "css.properties.text-box-edge": {
    "baseline": "low",
    "baseline_low_date": "2026-08-18",
    "support": {
     "chrome": "133",
     "chrome_android": "133",
     "edge": "133",
     "firefox": "154",
     "firefox_android": "154",
     "safari": "18.2",
     "safari_ios": "18.2"
    }
   },
   "css.properties.text-box-edge.auto": {
    "baseline": "low",
    "baseline_low_date": "2026-08-18",
    "support": {
     "chrome": "133",
     "chrome_android": "133",
     "edge": "133",
     "firefox": "154",
     "firefox_android": "154",
     "safari": "18.2",
     "safari_ios": "18.2"
    }
   },
   "css.properties.text-box-trim": {
    "baseline": "low",
    "baseline_low_date": "2026-08-18",
    "support": {
     "chrome": "133",
     "chrome_android": "133",
     "edge": "133",
     "firefox": "154",
     "firefox_android": "154",
     "safari": "18.2",
     "safari_ios": "18.2"
    }
   },
   "css.properties.text-box-trim.none": {
    "baseline": "low",
    "baseline_low_date": "2026-08-18",
    "support": {
     "chrome": "133",
     "chrome_android": "133",
     "edge": "133",
     "firefox": "154",
     "firefox_android": "154",
     "safari": "18.2",
     "safari_ios": "18.2"
    }
   },
   "css.properties.text-box-trim.trim-both": {
    "baseline": "low",
    "baseline_low_date": "2026-08-18",
    "support": {
     "chrome": "133",
     "chrome_android": "133",
     "edge": "133",
     "firefox": "154",
     "firefox_android": "154",
     "safari": "18.2",
     "safari_ios": "18.2"
    }
   },
   "css.properties.text-box-trim.trim-end": {
    "baseline": "low",
    "baseline_low_date": "2026-08-18",
    "support": {
     "chrome": "133",
     "chrome_android": "133",
     "edge": "133",
     "firefox": "154",
     "firefox_android": "154",
     "safari": "18.2",
     "safari_ios": "18.2"
    }
   },
   "css.properties.text-box-trim.trim-start": {
    "baseline": "low",
    "baseline_low_date": "2026-08-18",
    "support": {
     "chrome": "133",
     "chrome_android": "133",
     "edge": "133",
     "firefox": "154",
     "firefox_android": "154",
     "safari": "18.2",
     "safari_ios": "18.2"
    }
   },
   "css.properties.text-box.normal": {
    "baseline": "low",
    "baseline_low_date": "2026-08-18",
    "support": {
     "chrome": "133",
     "chrome_android": "133",
     "edge": "133",
     "firefox": "154",
     "firefox_android": "154",
     "safari": "18.2",
     "safari_ios": "18.2"
    }
   },
   "css.types.text-edge": {
    "baseline": false,
    "support": {
     "chrome": "133",
     "chrome_android": "133",
     "edge": "133",
     "safari": "18.2",
     "safari_ios": "18.2"
    }
   },
   "css.types.text-edge.alphabetic": {
    "baseline": false,
    "support": {
     "chrome": "133",
     "chrome_android": "133",
     "edge": "133",
     "safari": "18.2",
     "safari_ios": "18.2"
    }
   },
   "css.types.text-edge.cap": {
    "baseline": false,
    "support": {
     "chrome": "133",
     "chrome_android": "133",
     "edge": "133",
     "safari": "18.2",
     "safari_ios": "18.2"
    }
   },
   "css.types.text-edge.ex": {
    "baseline": false,
    "support": {
     "chrome": "133",
     "chrome_android": "133",
     "edge": "133",
     "safari": "18.2",
     "safari_ios": "18.2"
    }
   },
   "css.types.text-edge.text": {
    "baseline": false,
    "support": {
     "chrome": "133",
     "chrome_android": "133",
     "edge": "133",
     "safari": "18.2",
     "safari_ios": "18.2"
    }
   }
  },
  "support": {
   "chrome": "133",
   "chrome_android": "133",
   "edge": "133",
   "safari": "18.2",
   "safari_ios": "18.2"
  }
 },
 "id": "text-box",
 "groups": [
  "text"
 ],
 "specs": [
  {
   "url": "https://drafts.csswg.org/css-inline-3/#leading-trim",
   "seriesComposition": "full",
   "shortname": "css-inline-3",
   "series": {
    "shortname": "css-inline",
    "currentSpecification": "css-inline-3",
    "title": "CSS Inline Layout",
    "shortTitle": "CSS Inline Layout",
    "releaseUrl": "https://www.w3.org/TR/css-inline/",
    "nightlyUrl": "https://drafts.csswg.org/css-inline/"
   },
   "seriesVersion": "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-inline-3/",
    "status": "Working Draft",
    "filename": "Overview.html"
   },
   "nightly": {
    "url": "https://drafts.csswg.org/css-inline-3/",
    "status": "Editor's Draft",
    "alternateUrls": [
     "https://w3c.github.io/csswg-drafts/css-inline-3/",
     "https://w3c.github.io/csswg-drafts/css-inline/"
    ],
    "repository": "https://github.com/w3c/csswg-drafts",
    "sourcePath": "css-inline-3/Overview.bs",
    "filename": "index.html"
   },
   "title": "CSS Inline Layout Module Level 3",
   "source": "w3c",
   "shortTitle": "CSS Inline Layout 3",
   "categories": [
    "browser"
   ],
   "standing": "good",
   "tests": {
    "repository": "https://github.com/web-platform-tests/wpt",
    "testPaths": [
     "css/css-inline"
    ]
   },
   "fragment": "leading-trim"
  }
 ],
 "mdnUrls": [
  {
   "slug": "Web/CSS/Reference/Properties/text-box",
   "title": "`text-box` CSS property",
   "anchor": null,
   "url": "https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/text-box"
  }
 ],
 "standardPositions": [
  {
   "vendor": "apple",
   "url": "https://github.com/WebKit/standards-positions/issues/432",
   "position": "support",
   "concerns": []
  }
 ],
 "hasNegativeStandardPosition": false,
 "stateOfSurveys": [
  {
   "name": "State of CSS 2026",
   "url": "https://2026.stateofcss.com/en-US/usage/#css_interoperability_features",
   "question": "usage",
   "subQuestion": "css_interoperability_features",
   "path": "dataAPI.surveys.state_of_css.css2026.usage.css_interoperability_features.freeform.allEditions.0.buckets.16.entity"
  },
  {
   "name": "State of CSS 2026",
   "url": "https://2026.stateofcss.com/en-US/shapes_graphics/#shapes_graphics_pain_points_features",
   "question": "shapes_graphics",
   "subQuestion": "shapes_graphics_pain_points_features",
   "path": "dataAPI.surveys.state_of_css.css2026.shapes_graphics.shapes_graphics_pain_points_features.freeform.allEditions.1.buckets.9.entity"
  },
  {
   "name": "State of CSS 2026",
   "url": "https://2026.stateofcss.com/en-US/shapes_graphics/#shapes_graphics_pain_points",
   "question": "shapes_graphics",
   "subQuestion": "shapes_graphics_pain_points",
   "path": "dataAPI.surveys.state_of_css.css2026.shapes_graphics.shapes_graphics_pain_points.freeform.allEditions.1.buckets.19.entity"
  },
  {
   "name": "State of CSS 2026",
   "url": "https://2026.stateofcss.com/en-US/features/#reading_list",
   "question": "reading_list",
   "subQuestion": "reading_list",
   "path": "dataAPI.surveys.state_of_css.css2026.reading_list.reading_list.combined.allEditions.0.buckets.3.entity"
  },
  {
   "name": "State of CSS 2026",
   "url": "https://2026.stateofcss.com/en-US/_all_features/#all_features",
   "question": "_all_features",
   "subQuestion": "all_features",
   "path": "dataAPI.surveys.state_of_css.css2026._all_features.all_features.13.entity"
  }
 ],
 "chromeUseCounters": {
  "percentageOfPageLoad": 0.01297889,
  "url": "https://chromestatus.com/metrics/webfeature/timeline/popularity/318"
 },
 "interop": [],
 "wpt": {
  "url": "https://wpt.fyi/results?q=feature:text-box"
 },
 "developerSignals": {
  "url": "https://github.com/web-platform-dx/developer-signals/issues/265",
  "votes": 81
 },
 "bugs": {
  "firefox": [
   "https://bugzil.la/1977183"
  ],
  "chrome": [
   "https://bugs.chromium.org/p/chromium/issues/detail?id=1411581"
  ]
 },
 "useCases": null,
 "baselineLowDateAsObject": null,
 "baselineHighDateAsObject": null,
 "blockedOn": "Firefox",
 "blockedSince": "February 2025",
 "monthsBlocked": 19
}