CSS Text 4 tab-size Test Page

Default (tab-size: 8, initial value)

Each tab indents to the next multiple of 8 space widths
function greet(name) {
	if (name) {
		console.log("Hello, " + name);
	} else {
		console.log("Hello!");
	}
}

tab-size: 4

A narrower numeric tab stop - same source, tighter indentation
function greet(name) {
	if (name) {
		console.log("Hello, " + name);
	} else {
		console.log("Hello!");
	}
}

tab-size: 2

An even narrower numeric tab stop
function greet(name) {
	if (name) {
		console.log("Hello, " + name);
	} else {
		console.log("Hello!");
	}
}

tab-size: 40px (a <length>, not a multiplier)

An explicit length fixes the stop width regardless of the font's own space width
function greet(name) {
	if (name) {
		console.log("Hello, " + name);
	} else {
		console.log("Hello!");
	}
}