W3C home > Mailing lists > Public > www-style@w3.org > January 2013

Re: A proposal to replace 'tab-size' with 'tabstop-widths'

From: fantasai <fantasai.lists@inkedblade.net>
Date: Thu, 03 Jan 2013 09:14:35 -0800
Message-ID: <50E5BC7B.3000301@inkedblade.net>
To: www-style@w3.org
On 12/21/2012 06:24 PM, Nick Gravgaard wrote:
> Hi all.
>
> I'm the inventor of elastic tabstops
> (http://nickgravgaard.com/elastictabstops/), and I was recently
> contacted by someone who was working on Ace (http://ace.ajax.org/),
> which seems to be the most widely used browser based text editor. There
> had been some demand for elastic tabstops and he was attempting to
> implement it. This led me to look into how elastic tabstops might be
> implemented in Ace. The first thing I came across was the 'tab-size'
> property and I quickly realised that it was not sufficient to support
> what was needed.
>
> I would like to suggest something which is more powerful than 'tab-size'
> (http://www.w3.org/TR/css3-text/#tab-size) but should be easily
> implementable and would work like ''tab-size' when given one value. I
> propose a new attribute called 'tabstop-widths' which takes a list of
> widths measured in em and/or px values.

I think this would be quite easy to spec as an extension to the
existing 'tab-size' property to have it accept multiple values,
rather than as a separate property.

The open question is whether anyone would want to implement that.

~fantasai
Received on Thursday, 3 January 2013 17:15:03 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:04 GMT