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: 155Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154Firefox
1–90Not supported
91+Supportedsince Aug 10, 2021
Current: 157Safari
1–13Not supported
13.1+Supportedsince Mar 24, 2020
Current: 27MobileChrome Android
18–41Not supported
42+Supportedsince Apr 15, 2015
Current: 155Firefox Android
4–90Not supported
91+Supportedsince Aug 10, 2021
Current: 157Safari iOS
1–13Not supported
13.4+Supportedsince Mar 24, 2020
Current: 27How 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
}Documentation (MDN)
Specification
Usage share
Sub-features
Support for each part of the feature (2). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| tab-size | 21 | 79 | 91 | 7 | 25 | 91 | 7 |
| tab-size.length | 42 | 79 | 91 | 13.1 | 42 | 91 | 13.4 |