W3C home > Mailing lists > Public > www-style@w3.org > October 2009

[CSS3 Text] The width of tab indents

From: YANG Xudong <wyvernoid@gmail.com>
Date: Wed, 28 Oct 2009 19:48:31 +0800
Message-ID: <363b494e0910280448p24d0ec45lad7935bb9365828b@mail.gmail.com>
To: www-style@w3.org
Hello there. I'm a new subscriber to the list and I apologize if this
has been suggested before or sounds stupid. As the subject says, I've
always wondered why CSS doesn't have a tab-indent property that
customizes the default width of tab indents. The CSS3 WD Text module

> A tab (U+0009) is rendered as a horizontal shift that lines up the start edge of the next glyph with the next tab stop. Tab stops occur at points that are multiples of 8 times the width of a space (U+0020) rendered in the block's font from the block's starting content edge.

The number '8' is fixed here, but it could be more useful if it were
customizable (for example, most programmers prefer a tab indent of 4).
This could prove handy as many coders have to work around this problem
by substituting tabs with 4 spaces using JavaScript right now.
YANG Xudong (Wyvernoid)
The amateurs built the boat. The professionals built the Titanic.
En omna kazi, me preferas referesar kom YANG Xudong vice Xudong Yang.
Vizitez la Wikivortaro per Ido ed helpez plubonigar ol!
Received on Wednesday, 28 October 2009 13:42:23 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:30 UTC