W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2020

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

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Tue, 01 Sep 2020 19:13:07 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-690381128-1598987586-sysbot+gh@w3.org>
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)

<!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>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:15 UTC