← Back to release summary

tab-size supports <number> css value type

Category
CSS
Type
New or changed feature
Status
Enabled by default (Chrome 77)
Intent stage
Prepare to ship

WPT details: Below web platform tests are for 'tab-size' <number> value type. 1) third_party/blink/web_tests/external/wpt/css/css-text/parsing/tab-size-computed.html 2) third_party/blink/web_tests/external/wpt/css/css-text/parsing/tab-size-valid 3) third_party/blink/web_tests/external/wpt/css/css-text/tab-size/tab-size.html 4) third_party/blink/web_tests/external/wpt/css/css-typed-om/the-stylepropertymap/properties/tab-size.html 5) third_party/blink/web_tests/external/wpt/css/css-values/calc-numbers.html

Summary

Adds support for <number> css value type to the CSS property tab-size, which determines the tab size used to render preserved tab characters. 'tab-size' accepts an <integer> or a <number> as its value type, and represents the measure as a real-number multiple of the space character’s advance width, in addition to its integer multiple.

Standards & signals

Ecosystem

Explainers: https://drafts.csswg.org/css-text-3/#tab-size-property

View on chromestatus.com