coderef

tab-sizeBaseline · Widely available

The tab-size CSS property sets the width of the tab character.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Aug 10, 2021. Widely available since Feb 10, 2024.

Browser support

DesktopChrome
1–41Not supported
42+Supportedsince Apr 14, 2015
Current: 155
Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154
Firefox
1–90Not supported
91+Supportedsince Aug 10, 2021
Current: 157
Safari
1–13Not supported
13.1+Supportedsince Mar 24, 2020
Current: 27
MobileChrome Android
18–41Not supported
42+Supportedsince Apr 15, 2015
Current: 155
Firefox Android
4–90Not supported
91+Supportedsince Aug 10, 2021
Current: 157
Safari iOS
1–13Not supported
13.4+Supportedsince Mar 24, 2020
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: tab-size.

Feature detection

CSS · check before using
@supports (tab-size: initial) {
  /* styles that rely on tab-size */
}

/* or in JavaScript */
if (CSS.supports("tab-size", "initial")) {
  // use it
}

Sub-features

Support for each part of the feature (2). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
tab-size217991725917
tab-size.length42799113.1429113.4