Bug 152683 - tab-size as length (as per spec) does not work
Summary: tab-size as length (as per spec) does not work
Status: RESOLVED DUPLICATE of bug 179022
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: W3CTest, WebExposed
Depends on:
Blocks:
 
Reported: 2016-01-03 23:39 PST by yisibl
Modified: 2019-02-28 11:22 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yisibl 2016-01-03 23:39:26 PST
As per the CSS Text Module Level 3 specification, one should be able to specify a tab-size property as either an integer (number of white spaces), or as "length". See http://www.w3.org/TR/css-text-3/#tab-size

However, chrome only appears to support the integer case, not the length case:
See http://jsbin.com/qocetori/1/

Blink fixed it in: https://code.google.com/p/chromium/issues/detail?id=386437
Comment 1 yisibl 2016-01-03 23:43:27 PST
I think WebKit should take some time to synchronize the CSS features of Blink repair.
Comment 2 Gérard Talbot 2019-02-28 10:43:55 PST
I believe bug 179022 and this bug report are the same. If this is correct, then one of the 2 should be resolved as DUPLICATE.

- - - -

The spec on tab-size now accepts real number, not just integer:

Value: 	<number> | <length>

https://www.w3.org/TR/css-text-3/#tab-size-property

testing tab-size: calc(10px)
http://w3c-test.org/css/css-values/calc-numbers.html

https://wpt.fyi/results/css/css-values/calc-numbers.html?label=master
Comment 3 Simon Fraser (smfr) 2019-02-28 11:22:42 PST
Yes, thank you.

*** This bug has been marked as a duplicate of bug 179022 ***