[csswg-drafts] [css-text] 'tab-size' de facto applies to inline boxes (#5489)

Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-text] 'tab-size' de facto applies to inline boxes ==
From https://drafts.csswg.org/css-text-3/#propdef-tab-size

> Applies to: block containers

However, all Chromium, WebKit and Firefox also support it in inline boxes. [Testcase](https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cdiv%20style%3D%22white-space%3A%20pre%3B%20tab-size%3A%20100px%3B%20-moz-tab-size%3A%20100px%22%3E%0A%20%20A%26%239%3B%3Cspan%20style%3D%22tab-size%3A%2050px%3B%20-moz-tab-size%3A%2050px%22%3EB%26%239%3BC%3C%2Fspan%3E%0A%3C%2Fdiv%3E)

```html
<!DOCTYPE html>
<div style="white-space: pre; tab-size: 100px; -moz-tab-size: 100px">
  A&#9;<span style="tab-size: 50px; -moz-tab-size: 50px">B&#9;C</span>
</div>
```
looks more or less like
```
A              B       C
```

So I guess the spec should be changed to reflect reality?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5489 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 1 September 2020 19:13:09 UTC